Re: Unable to derive module descriptor for gradle-api-5.6.2.jar — Provider class moduleName=model-core not in module
Alex Buckley
alex.buckley at oracle.com
Fri Oct 11 23:52:13 UTC 2019
On 10/11/2019 3:41 PM, Plugins wrote:
> That technically-inappropriate
> META-INF/services/org.codehaus.groovy.runtime.ExtensionModule entry in
> Gradle's gradle-api-{version}.jar file is used by Gradle to extend the
> Groovy language; which Gradle relies on. Apparently, that service entry
> extends Groovy with Java methods [2].
As I write this email, the most recent comment at [2] is:
-----
alan.bateman2 • 2 years ago
META-INF/services is specified in the JAR file spec as the location for
services configuration files. It's not appropriate to put properties
file in this location. Can the Groovy extension mechanism use a
different location?
-----
> The contents of that file...
>
> moduleName=model-core
> moduleVersion=1.0
>
> extensionClasses=org.gradle.api.internal.provider.MapPropertyExtensions
>
> ...breaks Jigsaw when gradle-api-{version}.jar is in the module path
> (for Gradle plugin development, say).
Then gradle-api-{version}.jar can't be used as an automatic module.
Since Cedric Champeau was writing to jdk-dev earlier today, I have taken
the liberty of cc'ing him in the hope that he can share Gradle's plans
for fixing this.
Alex
More information about the jigsaw-dev
mailing list