-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbuild.gradle
55 lines (46 loc) · 1.47 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
ext.maven_username="junbo_xu"
ext.maven_password="coffee"
allprojects {
group = 'com.qianzhui.enode'
version = '1.4-SNAPSHOT'
}
subprojects {
apply plugin: 'java'
sourceCompatibility=1.8
targetCompatibility=1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
testCompile 'junit:junit:4.12'
}
repositories {
mavenLocal()
maven {
name 'Nexus repository'
url 'http://test.jishulink.com:8081/nexus/content/groups/public'
}
mavenCentral()
}
apply plugin:'maven'
uploadArchives {
repositories {
mavenDeployer {
snapshotRepository(url:"http://test.jishulink.com:8081/nexus/content/repositories/snapshots") {
authentication(userName:"${maven_username}", password:"${maven_password}")
}
repository(url: "http://test.jishulink.com:8081/nexus/content/repositories/releases") {
authentication(userName: "${maven_username}", password: "${maven_password}")
}
pom.project {
version project.version
artifactId project.name
groupId project.group
}
/*pom.version = "${project.version}"
pom.artifactId = "${project.archivesBaseName}"
pom.groupId = "${project.group}"*/
}
}
}
}