-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmvn-push.gradle
More file actions
36 lines (31 loc) · 844 Bytes
/
mvn-push.gradle
File metadata and controls
36 lines (31 loc) · 844 Bytes
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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository(url: System.properties['release']) {
authentication(userName: System.properties['username'], password: System.properties['password'])
}
snapshotRepository(url: System.properties['snapshot']) {
authentication(userName: System.properties['username'], password: System.properties['password'])
}
}
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc{
failOnError = false
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}