moditect / moditect-gradle-plugin

A ModiTect plug-in for the Gradle build system
Apache License 2.0
11 stars 2 forks source link

jdeps --multi-release #9

Closed rashaverak closed 4 years ago

rashaverak commented 5 years ago

Hello, do you have any ETA to make this plugin usable for the unlucky of us ?

siordache commented 5 years ago

Java 12 fixed the multi-release bug. Did you try running Gradle with Java 12?

rashaverak commented 5 years ago

Java 12 does not help

Task :generateModuleInfo FAILED Error: jaxb-api-2.3.1.jar is a multi-release jar file but --multi-release option is not set

FAILURE: Build failed with an exception.

siordache commented 5 years ago

You're right, Java 12 doesn't help. The error is caused by this issue, which will be fixed in the next ModiTect release.

siordache commented 5 years ago

@rashaverak Try inserting the following into your generateModuleInfo, addMainModuleInfo, and addDependenciesModuleInfo blocks:

jdepsExtraArgs = ['--multi-release', '9']

A similar workaround has been successfully applied to this project. Java 12 is still needed.

siordache commented 4 years ago

Fixed in 1.0.0-rc1.