@@ -7,7 +7,6 @@ plugins {
77 id(" com.github.hierynomus.license" ) version " 0.16.1"
88 id(" biz.aQute.bnd.builder" ) version " 7.3.0"
99 id(" com.vanniktech.maven.publish" ) version " 0.37.0"
10- id(" org.beryx.jar" ) version " 2.0.0"
1110 id(" signing" )
1211}
1312
@@ -38,21 +37,25 @@ repositories {
3837}
3938
4039dependencies {
41-
4240 implementation " io.reactivex.rxjava4:rxjava:$rxJavaVersion "
4341
4442 testImplementation " org.mockito:mockito-core:$mockitoVersion "
4543 testImplementation " org.mockito:mockito-junit-jupiter:$mockitoJUnitVersion "
4644
4745 testImplementation " org.junit.jupiter:junit-jupiter:$jupiterVersion "
4846
49- // Explicitly add these for IDE compatibility (especially Eclipse )
47+ // For Eclipse + JUnit Platform launcher (keep these )
5048 testImplementation " org.junit.platform:junit-platform-commons:$jupiterLauncherVersion "
5149 testImplementation " org.junit.platform:junit-platform-launcher:$jupiterLauncherVersion "
50+ testRuntimeOnly " org.junit.platform:junit-platform-launcher:$jupiterLauncherVersion "
5251
53- testRuntimeOnly " org.junit.platform:junit-platform-launcher:$jupiterLauncherVersion " // already have this
52+ // === NEW: Make requires static work for module-info.java compilation ===
53+ // These go on compileClasspath (so module-info.java can resolve them) but are NOT packaged
54+ compileOnly " org.junit.jupiter:junit-jupiter-api:$jupiterVersion "
55+ compileOnly " org.junit.platform:junit-platform-commons:$jupiterLauncherVersion "
56+ // Optional: if you also want the mockito requires static
57+ // compileOnly "org.mockito:mockito-core:$mockitoVersion"
5458}
55-
5659// === Experimental JDK handling for Outreach Program ===
5760def experimental = System . getenv(" JDK_EXPERIMENTAL" )
5861def toolchainJdk = " 26" // default / baseline
@@ -73,6 +76,7 @@ tasks.withType(JavaCompile) {
7376 options. compilerArgs << " -parameters"
7477 options. compilerArgs + = ' -Xlint:-module'
7578 options. compilerArgs + = ' -Xlint:unchecked'
79+ modularity. inferModulePath = true
7680}
7781
7882checkstyle {
@@ -127,12 +131,6 @@ javadoc {
127131 // modularity.inferModulePath = true // let Gradle handle deps on --module-path
128132}
129133
130- moduleConfig {
131- moduleInfoPath = ' src/main/module/module-info.java'
132- multiReleaseVersion = 9
133- version = project. version
134- }
135-
136134import aQute.bnd.gradle.Bundle // ← important import
137135
138136tasks. register(' bundle' , Bundle ) {
0 commit comments