forked from nugu-developers/nugu-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.gradle
46 lines (39 loc) · 1.14 KB
/
publish.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
apply plugin: 'maven-publish'
publishing {
Properties properties = new Properties()
if (project.rootProject.file('local.properties').canRead()) {
properties.load(project.rootProject.file("local.properties").newDataInputStream())
}
def userName = properties['maven.userName']
def passWord = properties['maven.password']
def mavenTarget = ""
if(project.rootProject.publishSnapshot) {
mavenTarget = "maven-snapshots"
} else {
mavenTarget = "maven-releases"
}
repositories {
maven {
url "http://223.39.117.163:8081/repository/$mavenTarget/"
credentials {
username userName
password passWord
}
}
maven {
url "http://223.39.117.164:8081/repository/$mavenTarget/"
credentials {
username userName
password passWord
}
}
}
publications {
mavenJava(MavenPublication) {
groupId = "com.skt.nugu.sdk"
from components.java
artifact sourceJar
artifact packageJavadoc
}
}
}