forked from qsunny/j2ee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (48 loc) · 1.08 KB
/
build.gradle
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
allprojects {
apply plugin: 'java'
// JDK 7
sourceCompatibility = 1.8
targetCompatibility = 1.8
// 全局属性设置
ext {
// java文件编码方式设置为utf-8
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'utf-8'
}
repositories {
//使用Maven本地缓存
mavenLocal()
maven {
credentials {
username 'user'
password 'password'
}
url "http://192.168.1.112:8081/nexus/content/groups/public/"
}
maven {
url "http://repo1.maven.org/maven2"
}
maven {
url "https://repo.spring.io/libs-release"
}
maven { url 'http://repo.spring.io/snapshot' }
//使用开源中国的maven库
maven {
url "http://maven.oschina.net/content/groups/public/"
name = "开源中国的maven库"
}
jcenter()
mavenCentral()
}
}
subprojects {
apply plugin: 'eclipse-wtp'
dependencies {
testCompile 'junit:junit:4.8.2'
}
version = '1.0'
jar {
manifest.attributes provider: 'search web'
}
}