-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (52 loc) · 1.4 KB
/
build.gradle
File metadata and controls
63 lines (52 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
group 'com.saintdan.util'
version '0.0.5-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
buildscript {
repositories {
maven {
url {
"https://oss.sonatype.org/content/repositories/snapshots/"
}
}
mavenCentral()
jcenter()
}
}
allprojects {
repositories {
maven {
url {
"https://oss.sonatype.org/content/repositories/snapshots/"
}
}
mavenCentral()
jcenter()
}
}
compileJava {
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
compileTestJava {
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
ext {
aliyunCoreVersion = '2.3.2'
onsClientVersion = '1.1.11'
pahoVersion = '1.0.2'
commonsLang3Version = '3.4'
junitVersion = '4.12'
}
dependencies {
compile "com.aliyun:aliyun-java-sdk-core:${aliyunCoreVersion}"
// 目前阿里还没有将aliyun-java-sdk-ons包部署到软件仓库中,所以是从官网上下载SDK到本地
compile files('libs/aliyun-java-sdk-ons-1.0.1-SNAPSHOT.jar')
compile "com.aliyun.openservices:ons-client:${onsClientVersion}"
compile "org.eclipse.paho:org.eclipse.paho.client.mqttv3:${pahoVersion}"
compile "org.apache.commons:commons-lang3:${commonsLang3Version}"
testCompile "junit:junit:${junitVersion}"
}
apply from: 'mvn-push.gradle'