-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublish.gradle
66 lines (55 loc) · 1.66 KB
/
publish.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
apply plugin: 'maven-publish'
apply plugin: 'signing'
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
release(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = "${project.group}:${project.name}"
description = project.description
url = 'https://github.com/ergon/adam'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'rbuehlma'
name = 'René Bühlmann'
email = '[email protected]'
organization = 'Ergon Informatik AG'
organizationUrl = 'https://www.ergon.ch'
}
}
scm {
connection = 'scm:git:https://github.com/ergon/adam.git'
developerConnection = 'scm:git:git://github.com/ergon/adam.git'
url = 'https://github.com/ergon/adam'
}
}
}
}
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign publishing.publications
}