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

Reply via email to