-
Notifications
You must be signed in to change notification settings - Fork 41
/
publication.gradle
99 lines (85 loc) · 2.12 KB
/
publication.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
87
88
89
90
91
92
93
94
95
96
97
98
99
configure(subprojects.findAll {it.name != 'rsocket-rpc-protobuf'}) {
plugins.withType(JavaPlugin) {
compileJava {
sourceCompatibility = 1.8
// TODO: Cleanup warnings so no need to exclude
options.compilerArgs << '-Xlint:all,-overloads,-rawtypes,-unchecked'
}
javadoc {
options.with {
links 'https://docs.oracle.com/javase/8/docs/api/'
links 'https://projectreactor.io/docs/core/release/api/'
}
}
test {
useJUnitPlatform()
systemProperty "io.netty.leakDetection.level", "ADVANCED"
}
}
plugins.withType(JavaLibraryPlugin) {
task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc'
from javadoc.destinationDir
}
}
plugins.withType(MavenPublishPlugin) {
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = project.name
groupId = project.group
afterEvaluate {
description = project.description
}
resolveStrategy = DELEGATE_FIRST
url = 'http://rsocket.io'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/license/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'robertroeser'
name = 'Robert Roeser'
email = '[email protected]'
}
developer {
id = 'rdegnan'
name = 'Ryland Degnan'
email = '[email protected]'
}
developer {
id = 'OlegDokuka'
name = 'Oleh Dokuka'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/rsocket/rsocket-rpc-java.git'
developerConnection = 'scm:git:https://github.com/rsocket/rsocket-rpc-java.git'
url = 'https://github.com/rsocket/rsocket-rpc-java'
}
}
}
}
}
}
}