You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
languageVersion =JavaLanguageVersion.of(25) // Temurin 26 is not out yet
62
58
}
63
-
sourceCompatibility =JavaVersion.VERSION_1_8
64
-
targetCompatibility =JavaVersion.VERSION_1_8
59
+
sourceCompatibility =JavaVersion.VERSION_25
60
+
targetCompatibility =JavaVersion.VERSION_25
65
61
}
66
62
67
63
tasks.withType(JavaCompile) {
@@ -102,27 +98,37 @@ moduleConfig {
102
98
version = project.version
103
99
}
104
100
105
-
jar {
101
+
importaQute.bnd.gradle.Bundle//←importantimport
102
+
103
+
tasks.register('bundle', Bundle) {
104
+
archiveBaseName.set('rxjava') // or archiveFileName = "rxjava-${version}.jar"
105
+
archiveVersion.set(project.version)
106
+
archiveClassifier.set('') // empty → no classifier
107
+
108
+
from sourceSets.main.output // your classes
106
109
from('.') {
107
110
include 'LICENSE'
108
111
include 'COPYRIGHT'
109
-
into('META-INF/')
112
+
into 'META-INF/'
113
+
}
114
+
115
+
// Exclude module-info.class from root (you already had this)
116
+
exclude 'module-info.class'
117
+
118
+
// All your Bnd instructions go here
119
+
bundle {
120
+
bnd('-fixupmessages': '^Classes found in the wrong directory: \\{META-INF/versions/9/module-info\\.class=module-info\\}$')
121
+
122
+
bnd('Bundle-Name': 'rxjava')
123
+
bnd('Bundle-Vendor': 'RxJava Contributors')
124
+
bnd('Bundle-Description': 'Reactive Extensions for the JVM - a library for composing asynchronous and event-based programs using observable sequences for the Java VM.')
// Cover for bnd still not supporting MR Jars: https://github.com/bndtools/bnd/issues/2227
114
-
bnd('-fixupmessages': '^Classes found in the wrong directory: \\\\{META-INF/versions/9/module-info\\\\.class=module-info}$')
115
-
bnd(
116
-
"Bundle-Name": "rxjava",
117
-
"Bundle-Vendor": "RxJava Contributors",
118
-
"Bundle-Description": "Reactive Extensions for the JVM - a library for composing asynchronous and event-based programs using observable sequences for the Java VM.",
Copy file name to clipboardExpand all lines: gradle.properties
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
-
group=io.reactivex.rxjava3
2
-
version=3.0.0-SNAPSHOT
1
+
group=io.reactivex.rxjava4
2
+
version=4.0.0-SNAPSHOT
3
3
description=RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
0 commit comments