-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Switch to gradlex for modularity #13112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
2f600e7
a78fffa
383eff7
34c53ec
c367d10
369cfd3
fcd2c64
36d6904
08489ee
5c4e882
3c8073c
9d39689
4d654de
27e7063
b941af0
5163061
8c2d981
bd209b5
c5d1259
daee105
a183747
3f3e38e
b8d7de4
fd6aa07
db22347
6dbf25d
0686ec5
910f6c2
8780265
10a56cd
9e5d72a
cd0679c
96490cd
67f4fe8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,14 +5,13 @@ plugins { | |
| id("buildlogic.java-common-conventions") | ||
|
|
||
| `java-library` | ||
| `jvm-test-suite` | ||
|
|
||
| id("idea") | ||
|
|
||
| id("antlr") | ||
| id("com.github.edeandrea.xjc-generation") version "1.6" | ||
|
|
||
| id("org.openjfx.javafxplugin") version("0.1.0") | ||
|
|
||
| id("me.champeau.jmh") version "0.7.3" | ||
| } | ||
|
|
||
|
|
@@ -398,20 +397,6 @@ tasks.withType<JavaCompile>().configureEach { | |
| options.isFork = true | ||
| } | ||
|
|
||
| /* | ||
| tasks.named<JavaCompile>("compileJava") { | ||
| extensions.configure<org.javamodularity.moduleplugin.extensions.CompileModuleOptions>("moduleOptions") { | ||
| addExports.putAll( | ||
| mapOf( | ||
| // TODO: Remove access to internal api | ||
| "javafx.controls/com.sun.javafx.scene.control" to "org.jabref", | ||
| "org.controlsfx.controls/impl.org.controlsfx.skin" to "org.jabref" | ||
| ) | ||
| ) | ||
| } | ||
| } | ||
| */ | ||
|
|
||
| tasks.javadoc { | ||
| (options as StandardJavadocDocletOptions).apply { | ||
| encoding = "UTF-8" | ||
|
|
@@ -429,11 +414,6 @@ tasks.test { | |
| useJUnitPlatform { | ||
| excludeTags("DatabaseTest", "FetcherTest") | ||
| } | ||
|
|
||
| extensions.configure<org.javamodularity.moduleplugin.extensions.TestModuleOptions>("moduleOptions") { | ||
| // TODO: Remove this as soon as ArchUnit is modularized | ||
| runOnClasspath = true | ||
| } | ||
| } | ||
|
|
||
| jmh { | ||
|
|
@@ -496,3 +476,19 @@ jacocoTestReport { | |
| } | ||
| } | ||
| */ | ||
|
|
||
| javaModuleTesting.whitebox(testing.suites["test"]) { | ||
| requires.add("io.github.classgraph") | ||
| requires.add("org.junit.jupiter.api") | ||
| requires.add("org.junit.jupiter.params") | ||
| requires.add("org.jabref.testsupport") | ||
| requires.add("org.mockito") | ||
|
|
||
| // --add-opens | ||
| opensTo.add("javafx.base/com.sun.javafx.beans=net.bytebuddy") | ||
| opensTo.add("javafx.fxml/javafx.fxml=org.jabref") | ||
|
||
|
|
||
| // --add-reads | ||
| //reads.add("org.jabref.jablib=io.github.classgraph") | ||
| //reads.add("org.jabref.jablib=org.jabref.testsupport") | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.