-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
35 lines (31 loc) · 1005 Bytes
/
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
subprojects {
apply plugin: 'maven-publish'
group 'tigase.iot'
version '2.0.0-SNAPSHOT'
publishing {
repositories {
mavenLocal()
if (project.hasProperty("mavenRepoUsername") && project.hasProperty("mavenRepoPassword")) {
maven {
credentials {
username "$mavenRepoUsername"
password "$mavenRepoPassword"
}
if (project.version.endsWith("-SNAPSHOT")) {
url "http://maven-repo.tigase.org/repository/snapshot"
} else {
url "http://maven-repo.tigase.org/repository/release"
}
}
}
}
}
}
allprojects {
repositories {
mavenLocal()
maven {url "http://maven-repo.tigase.org/repository/release"}
maven {url "http://maven-repo.tigase.org/repository/snapshot"}
jcenter()
}
}