java-module-dependencies
java-module-dependencies copied to clipboard
A Gradle plugin to use dependencies from 'module-info.java' files.
Currently we _guess_ the complete module name of other modules (source sets in other subprojects) in the same build: https://github.com/jjohannes/java-module-dependencies/blob/bb1b089bde9185827541d5271aaf40207b75b79b/src/main/java/de/jjohannes/gradle/moduledependencies/JavaModuleDependenciesPlugin.java#L169-L171 That is why currently all module names need to correspond...
Add an option to make the build fail whenever there is a warning.
It seems I have to put `module-info.java` in `src/main/java` - in `src/main/kotlin` it doesn't get picked up. Even when it is in `src/main/java`, it seems the compilation fails with the...
I have provided a [reproducible sample](https://github.com/chaosflaws/mrjars-test). I tried to test a multi-release jar (17 and 21) for behavioral consistency by applying the existing unit tests first to the java 17...
Consider the following setup: **settings.gradle** ``` include("module-a") // applies 'java-test-fixtures' plugin include("module-a-test") include("module-b") ``` **module-info.java** of `module-b` ``` module org.example.module.b { requires org.example.module.a.test.fixtures; } ``` In such a scenario, `org.example.module.a.test.fixtures`...
To define versions, there are currently two documented methods: 1. Use a _platform_ (either as spearate project or as variant of an application project) 2. Use Gradle's version catalog (`[versions]`...
For example, if the `src/main/module-info.java` of an `application` project contains `requires transitive ...;` entries. Right now, these entries are silently ignored. **Note:** Not sure how to solve this yet. The...
We stumbled over differences here that caused things to be missing on the Module Path. An analysis that shows these differences would be helpful. This information could be used to...
https://github.com/gradle/gradle/issues/21490#issuecomment-1458887481
I get this stacktrace: {code} Caused by: java.lang.IllegalStateException: Duplicate key Localization (attempted merging values UMS and UMS.Utilities) at org.gradlex.javamodule.dependencies.JavaModuleDependenciesExtension.lambda$create$14(JavaModuleDependenciesExtension.java:216) at org.gradle.api.internal.provider.DefaultProvider.calculateOwnValue(DefaultProvider.java:72) at org.gradle.api.internal.provider.AbstractMinimalProvider.calculateValue(AbstractMinimalProvider.java:115) at org.gradle.api.internal.provider.TransformBackedProvider.calculateOwnValue(TransformBackedProvider.java:81) at org.gradle.api.internal.provider.AbstractMinimalProvider.calculateValue(AbstractMinimalProvider.java:115) at org.gradle.api.internal.provider.Collectors$ElementFromProvider.collectEntries(Collectors.java:100) at...