mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
add gradle support
This commit is contained in:
parent
a294bc42f5
commit
f70a6a5e46
34
build.gradle
Normal file
34
build.gradle
Normal file
@ -0,0 +1,34 @@
|
||||
allprojects {
|
||||
apply plugin: 'maven'
|
||||
|
||||
group = 'com.github.binarywang'
|
||||
version = '2.1.0-SNAPSHOT'
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply plugin: 'java'
|
||||
sourceCompatibility = 1.7
|
||||
targetCompatibility = 1.7
|
||||
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
||||
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.10'
|
||||
compile group: 'org.apache.httpcomponents', name: 'fluent-hc', version:'4.5'
|
||||
compile group: 'org.apache.httpcomponents', name: 'httpmime', version:'4.5'
|
||||
compile group: 'org.jodd', name: 'jodd-http', version:'3.6.7'
|
||||
compile group: 'com.google.code.gson', name: 'gson', version:'2.7'
|
||||
compile group: 'commons-codec', name: 'commons-codec', version:'1.10'
|
||||
compile group: 'commons-io', name: 'commons-io', version:'2.5'
|
||||
compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.4'
|
||||
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.8.0'
|
||||
compile group: 'redis.clients', name: 'jedis', version:'2.9.0'
|
||||
testCompile group: 'ch.qos.logback', name: 'logback-classic', version:'1.1.2'
|
||||
}
|
||||
}
|
8
settings.gradle
Normal file
8
settings.gradle
Normal file
@ -0,0 +1,8 @@
|
||||
rootProject.name = 'weixin-java-parent'
|
||||
include ':weixin-java-common'
|
||||
include ':weixin-java-cp'
|
||||
include ':weixin-java-mp'
|
||||
|
||||
project(':weixin-java-common').projectDir = "$rootDir/weixin-java-common" as File
|
||||
project(':weixin-java-cp').projectDir = "$rootDir/weixin-java-cp" as File
|
||||
project(':weixin-java-mp').projectDir = "$rootDir/weixin-java-mp" as File
|
12
weixin-java-common/build.gradle
Normal file
12
weixin-java-common/build.gradle
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
description = 'WeiXin Java Tools - Common'
|
||||
dependencies {
|
||||
compile group: 'com.thoughtworks.xstream', name: 'xstream', version:'1.4.7'
|
||||
testCompile group: 'junit', name: 'junit', version:'4.11'
|
||||
testCompile group: 'org.testng', name: 'testng', version:'6.8.7'
|
||||
testCompile group: 'org.mockito', name: 'mockito-all', version:'1.9.5'
|
||||
testCompile group: 'com.google.inject', name: 'guice', version:'3.0'
|
||||
testCompile group: 'org.eclipse.jetty', name: 'jetty-server', version:'9.3.0.M0'
|
||||
testCompile group: 'org.eclipse.jetty', name: 'jetty-servlet', version:'9.3.0.M0'
|
||||
}
|
||||
test.useTestNG()
|
12
weixin-java-cp/build.gradle
Normal file
12
weixin-java-cp/build.gradle
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
description = 'WeiXin Java Tools - CP'
|
||||
dependencies {
|
||||
compile project(':weixin-java-common')
|
||||
testCompile group: 'junit', name: 'junit', version:'4.11'
|
||||
testCompile group: 'org.testng', name: 'testng', version:'6.8.7'
|
||||
testCompile group: 'org.mockito', name: 'mockito-all', version:'1.9.5'
|
||||
testCompile group: 'com.google.inject', name: 'guice', version:'3.0'
|
||||
testCompile group: 'org.eclipse.jetty', name: 'jetty-server', version:'9.3.0.M0'
|
||||
testCompile group: 'org.eclipse.jetty', name: 'jetty-servlet', version:'9.3.0.M0'
|
||||
}
|
||||
test.useTestNG()
|
13
weixin-java-mp/build.gradle
Normal file
13
weixin-java-mp/build.gradle
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
description = 'WeiXin Java Tools - MP'
|
||||
dependencies {
|
||||
compile project(':weixin-java-common')
|
||||
testCompile group: 'junit', name: 'junit', version:'4.11'
|
||||
testCompile group: 'org.testng', name: 'testng', version:'6.8.7'
|
||||
testCompile group: 'org.mockito', name: 'mockito-all', version:'1.9.5'
|
||||
testCompile group: 'com.google.inject', name: 'guice', version:'3.0'
|
||||
testCompile group: 'org.eclipse.jetty', name: 'jetty-server', version:'9.3.0.M0'
|
||||
testCompile group: 'org.eclipse.jetty', name: 'jetty-servlet', version:'9.3.0.M0'
|
||||
testCompile group: 'joda-time', name: 'joda-time', version:'2.9.4'
|
||||
}
|
||||
test.useTestNG()
|
Loading…
Reference in New Issue
Block a user