-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
39 lines (34 loc) · 964 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
35
36
37
38
39
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'io.r2'
version = '0.1-indy'
sourceCompatibility = 1.8
repositories {
jcenter()
maven { url 'https://pm.apn2.com/nexus/content/repositories/public/' }
}
dependencies {
compile(
"org.codehaus.groovy:groovy-all:2.4.4:indy",
"io.r2:tinylog:1.0.1-plugin" // "org.tinylog:tinylog:1.0.1"
)
}
// deploy with gradle publish -PdeployUser=xxx -PdeployPass=yyy
if (project.hasProperty('deployUser') && project.hasProperty('deployPass')) {
publishing {
publications {
mavenJava(MavenPublication) {
from project.components.java
}
}
repositories {
maven {
credentials {
username deployUser
password deployPass
}
url 'https://pm.apn2.com/nexus/content/repositories/pub-releases'
}
}
}
}