-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.gradle
38 lines (35 loc) · 998 Bytes
/
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
if (findProperty('BINTRAY_USER') != null) {
bintray {
user = property('BINTRAY_USER')
key = property('BINTRAY_KEY')
publish = true
pkg {
repo = "saimiri"
name = project.name
licenses = ["MIT"]
vcsUrl = "https://github.com/Toboi/saimiri/"
publications = ['SaimiriPublish']
desc = project.description
}
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
SaimiriPublish(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
artifact sourcesJar
artifact javadocJar
version project.version
}
}
}
}