-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Compile module descriptors using regular compileJava
task
#4523
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
base: develop/6.x
Are you sure you want to change the base?
Compile module descriptors using regular compileJava
task
#4523
Conversation
0a3778e
to
1a50e16
Compare
@@ -21,6 +22,11 @@ dependencies { | |||
osgiVerification(projects.junitPlatformLauncher) | |||
} | |||
|
|||
extraJavaModuleInfo { | |||
automaticModule(libs.univocity.parsers, "univocity.parsers") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 This is used to add an Automatic-Module-Name
manifest to the JAR so Gradle will put it on the module path.
addStringOption("-add-modules", "univocity.parsers") | ||
addStringOption("-add-reads", "${javaModuleName}=univocity.parsers") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 Javadoc for individual subprojects now also uses the module path instead of the classpath and hence needs these options as well.
junit-jupiter-migrationsupport/junit-jupiter-migrationsupport.gradle.kts
Outdated
Show resolved
Hide resolved
" \"module\": \"junit-jupiter-engine\",", // | ||
" \"version\": {", // | ||
">> VERSION >>", // | ||
" }", // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 Only the order has changed here
881f2eb
to
120e8ab
Compare
f0a3da4
to
493a827
Compare
Overview
This PR gets rid of the extra
JavaCompile
tasks calledcompileModule
that were used to compile the module descriptors, moves them tosrc/main/java
, and uses the regularcompileJava
task to compile them alongside the regular Java sources.Definition of Done
@API
annotations