@@ -8,8 +8,8 @@ plugins {
8
8
id("me.champeau.gradle.jmh") version "0.5.3"
9
9
id("com.github.hierynomus.license") version "0.16.1"
10
10
id("biz.aQute.bnd.builder") version "6.4.0"
11
-
id("com.vanniktech.maven.publish") version "0.19.0"
12
-
id("org.beryx.jar") version "1.2.0"
11
+
id("com.vanniktech.maven.publish") version "0.32.0"
12
+
id("org.beryx.jar") version "2.0.0"
13
13
}
14
14
15
15
ext {
@@ -49,7 +49,16 @@ dependencies {
49
49
testImplementation "com.google.guava:guava:$guavaVersion"
50
50
}
51
51
52
+
def buildWith11 = System.getenv("BUILD_WITH_11")
52
53
java {
54
+
toolchain {
55
+
vendor = JvmVendorSpec.ADOPTIUM
56
+
if ("true".equals(buildWith11)) {
57
+
languageVersion = JavaLanguageVersion.of(11)
58
+
} else {
59
+
languageVersion = JavaLanguageVersion.of(8)
60
+
}
61
+
}
53
62
sourceCompatibility = JavaVersion.VERSION_1_8
54
63
targetCompatibility = JavaVersion.VERSION_1_8
55
64
}
@@ -86,12 +95,18 @@ animalsniffer {
86
95
annotation = "io.reactivex.rxjava3.internal.util.SuppressAnimalSniffer"
87
96
}
88
97
98
+
moduleConfig {
99
+
moduleInfoPath = 'src/main/module/module-info.java'
100
+
multiReleaseVersion = 9
101
+
}
102
+
89
103
jar {
90
104
from('.') {
91
105
include 'LICENSE'
92
106
include 'COPYRIGHT'
93
107
into('META-INF/')
94
108
}
109
+
exclude("module-info.class")
95
110
96
111
// Cover for bnd still not supporting MR Jars: https://github.com/bndtools/bnd/issues/2227
97
112
bnd('-fixupmessages': '^Classes found in the wrong directory: \\\\{META-INF/versions/9/module-info\\\\.class=module-info}$')
@@ -106,8 +121,6 @@ jar {
106
121
"Bundle-SymbolicName": "io.reactivex.rxjava3.rxjava",
107
122
"Multi-Release": "true"
108
123
)
109
-
110
-
moduleInfoPath = 'src/main/module/module-info.java'
111
124
}
112
125
113
126
license {
@@ -166,8 +179,9 @@ jacocoTestReport {
166
179
dependsOn testNG
167
180
168
181
reports {
169
-
xml.enabled = true
170
-
html.enabled = true
182
+
xml.required.set(true)
183
+
csv.required.set(false)
184
+
html.required.set(true)
171
185
}
172
186
}
173
187
@@ -179,44 +193,18 @@ checkstyle {
179
193
"checkstyle.suppressions.file": project.file("config/checkstyle/suppressions.xml"),
180
194
"checkstyle.header.file" : project.file("config/license/HEADER_JAVA")
181
195
]
196
+
checkstyleMain.exclude '**/module-info.java'
182
197
}
183
198
184
199
if (project.hasProperty("releaseMode")) {
185
200
logger.lifecycle("ReleaseMode: {}", project.releaseMode)
186
201
187
-
/*
188
-
if ("branch" == project.releaseMode) {
189
-
190
-
if (version.endsWith("-SNAPSHOT")) {
191
-
publishing {
192
-
repositories {
193
-
maven {
194
-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
195
-
}
196
-
}
197
-
}
198
-
199
-
mavenPublish {
200
-
nexus {
201
-
stagingProfile = "io.reactivex"
202
-
}
203
-
}
204
-
}
205
-
}
206
-
*/
207
202
208
203
if ("full" == project.releaseMode) {
209
204
signing {
210
205
if (project.hasProperty("SIGNING_PRIVATE_KEY") && project.hasProperty("SIGNING_PASSWORD")) {
211
206
useInMemoryPgpKeys(project.getProperty("SIGNING_PRIVATE_KEY"), project.getProperty("SIGNING_PASSWORD"))
212
207
}
213
208
}
214
-
/*
215
-
mavenPublish {
216
-
nexus {
217
-
stagingProfile = "io.reactivex"
218
-
}
219
-
}
220
-
*/
221
209
}
222
210
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4