You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With that ./gradlew clean build succeeds and the generated JAR is properly configured as Multi-Release JAR and contains the compiled module-info.class.
The text was updated successfully, but these errors were encountered:
Thanks for reporting and analyzing the problem. Unfortunately, I don't have much time for the moditect-gradle-plugin these days, so it would be great if you could send a PR for this issue.
Sadly, I am neither familiar with Gradle plugin development nor with Groovy. I might give it a try in case this issue has an "easy" solution, but I am afraid this issue is caused by the following code (have not verified it yet) and there is probably a reason for this specific configuration:
Version
Plugin: 1.0.0-rc3
Gradle: 7.4.2
Description
Trying to use this plugin with a Kotlin JVM project fails due to a circular dependency between tasks. Gradle output:
I also noticed some other issues when using
moduleInfoSource
; maybe it would be good to add some integration tests for Kotlin projects.Thanks a lot nonetheless for providing this Gradle plugin and the corresponding Maven plugin. Their functionality is really great!
Reproduction steps
You can skip the steps for creating the project below and instead use https://github.com/Marcono1234/moditect-kotlin-test
gradle init
)build.gradle.kts
file./gradlew clean build
❌ It fails
Workaround
Add the following to the
build.gradle.kts
file:(Based on this related StackOverflow answer)
With that
./gradlew clean build
succeeds and the generated JAR is properly configured as Multi-Release JAR and contains the compiledmodule-info.class
.The text was updated successfully, but these errors were encountered: