Skip to content

Commit 45e527f

Browse files
authored
Merge pull request #89 from arnobl/gradle-modules
config(java): build the lib as a Java9+ module
2 parents 9b19580 + b15e3e4 commit 45e527f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ buildscript {
1010
dependencies {
1111
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"
1212
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.5.2"
13+
classpath "org.javamodularity:moduleplugin:1.5.0"
1314
}
1415
}
1516

1617
apply plugin: "java"
18+
apply plugin: "org.javamodularity.moduleplugin"
1719
apply plugin: "maven"
1820
apply plugin: "maven-publish"
1921
apply plugin: "com.jfrog.bintray"
@@ -53,6 +55,12 @@ dependencies {
5355
testCompile 'org.mockito:mockito-core:1.8.5'
5456
}
5557

58+
test {
59+
moduleOptions {
60+
runOnClasspath = true
61+
}
62+
}
63+
5664
task sourcesJar(type: Jar) {
5765
classifier = 'sources'
5866
from sourceSets.main.allSource

src/main/java/module-info.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module rxjavafx {
2+
requires io.reactivex.rxjava2;
3+
requires javafx.base;
4+
requires javafx.graphics;
5+
requires javafx.controls;
6+
requires org.reactivestreams;
7+
8+
exports io.reactivex.rxjavafx.observables;
9+
exports io.reactivex.rxjavafx.observers;
10+
exports io.reactivex.rxjavafx.schedulers;
11+
exports io.reactivex.rxjavafx.sources;
12+
exports io.reactivex.rxjavafx.subscriptions;
13+
exports io.reactivex.rxjavafx.transformers;
14+
}

0 commit comments

Comments
 (0)