-
Notifications
You must be signed in to change notification settings - Fork 26
/
publish.gradle
86 lines (78 loc) · 2.38 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
tasks.register('sourceJarSonatype', Jar) {
archiveClassifier.set("sources")
from sourceSets.main.allJava
}
tasks.register('javadocJarSonatype', Jar) {
dependsOn javadoc
archiveClassifier.set("javadoc")
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourceJarSonatype
archives javadocJarSonatype
}
publishing {
publications {
mavenJava(MavenPublication) {
group 'eu.lucaventuri'
artifactId = 'fibry'
from components.java
artifact(sourceJarSonatype) {
classifier = 'sources'
}
artifact(javadocJarSonatype) {
classifier = 'javadoc'
}
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Fibry'
description = 'The first Java Actor System supporting fibers from Project Loom'
url = 'https://github.com/lucav76/Fibry'
licenses {
license {
name = 'MIT License'
url = 'https://github.com/lucav76/Fibry/blob/master/LICENSE'
}
}
developers {
developer {
id = 'lucav76'
name = 'Luca Venturi'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/lucav76/Fibry.git'
developerConnection = 'scm:git:ssh://[email protected]:lucav76/Fibry.git'
url = 'https://github.com/lucav76/Fibry/'
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username 'pb9X7rd0'
password System.properties['mavenCentraPassword']
}
}
}
}
// Signing credentials from gradle.properties
signing {
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}