-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrelease.gradle
52 lines (42 loc) · 1.13 KB
/
release.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
apply plugin: 'maven'
apply plugin: 'maven-publish'
afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME
repository(url: QA_RELEASES_URL) {
authentication(userName: QA_USERNAME, password: QA_PASSWORD)
}
snapshotRepository(url: QA_SNAPSHOT_URL) {
authentication(userName: QA_USERNAME, password: QA_PASSWORD)
}
pom.project {
name POM_NAME
packaging POM_PACKAGING
}
}
}
}
task javadocsJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
archives javadocsJar
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}