Skip to content

Commit 37b389e

Browse files
committed
Add full module descriptor
1 parent 476aa5c commit 37b389e

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

build.gradle

+9-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ plugins {
99
id("com.github.hierynomus.license") version "0.16.1"
1010
id("biz.aQute.bnd.builder") version "5.3.0"
1111
id("com.vanniktech.maven.publish") version "0.17.0"
12+
id("org.beryx.jar") version "1.2.0"
1213
}
1314

1415
ext {
@@ -30,6 +31,10 @@ if (releaseTag != null && !releaseTag.isEmpty()) {
3031
logger.lifecycle("Releasing with version: " + project.version)
3132
}
3233

34+
group = "io.reactivex.rxjava3"
35+
version = project.properties["VERSION_NAME"]
36+
description = "RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM."
37+
3338
repositories {
3439
mavenCentral()
3540
}
@@ -52,6 +57,7 @@ java {
5257
sourceCompatibility = JavaVersion.VERSION_1_8
5358
targetCompatibility = JavaVersion.VERSION_1_8
5459
}
60+
ext.javaCompatibility = JavaVersion.VERSION_1_8
5561

5662
tasks.withType(JavaCompile) {
5763
options.compilerArgs << "-parameters"
@@ -93,10 +99,11 @@ jar {
9399
"Import-Package": "!org.junit,!junit.framework,!org.mockito.*,!org.testng.*,*",
94100
"Bundle-DocURL": "https://github.com/ReactiveX/RxJava",
95101
"Eclipse-ExtensibleAPI": "true",
96-
"Automatic-Module-Name": "io.reactivex.rxjava3",
97-
"Export-Package": "!io.reactivex.rxjava3.internal.*, io.reactivex.rxjava3.*",
102+
"Export-Package": "!io.reactivex.rxjava3.internal.*, io.reactivex.rxjava3.*"
98103
"Bundle-SymbolicName": "io.reactivex.rxjava3.rxjava"
99104
)
105+
106+
moduleInfoPath = 'src/main/module/module-info.java'
100107
}
101108

102109
license {

src/main/module/module-info.java

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2016-present, RxJava Contributors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
5+
* compliance with the License. You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is
10+
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
11+
* the License for the specific language governing permissions and limitations under the License.
12+
*/
13+
14+
module io.reactivex.rxjava3 {
15+
exports io.reactivex.rxjava3.annotations;
16+
exports io.reactivex.rxjava3.core;
17+
exports io.reactivex.rxjava3.disposables;
18+
exports io.reactivex.rxjava3.exceptions;
19+
exports io.reactivex.rxjava3.functions;
20+
exports io.reactivex.rxjava3.observables;
21+
exports io.reactivex.rxjava3.observers;
22+
exports io.reactivex.rxjava3.parallel;
23+
exports io.reactivex.rxjava3.plugins;
24+
exports io.reactivex.rxjava3.processors;
25+
exports io.reactivex.rxjava3.schedulers;
26+
exports io.reactivex.rxjava3.subjects;
27+
exports io.reactivex.rxjava3.subscribers;
28+
29+
requires org.reactivestreams;
30+
}

0 commit comments

Comments
 (0)