Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory()

Worked, was using Java 11, switched to Java 8

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
./gradlew --stacktrace deploy

The issues does come from Java 11, but similarly to the version name issue after the upgrade to Java 10, the issue can be fixed by upgrading Gradle. The issue isn't present in Gradle 5.5, but I'm not sure which version is the earliest to support it. (5.5 is, at the time of writing, the newest version of Gradle)

If you're using the per project Gradle wrapper (with a gradle/wrapper/gradle-wrapper.properties), all you have to do is change the line containing the distribution URL, and bump the version:

distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-bin.zip

I fixed the issue by removing .gradle/checksums/checksums.lock

and all *.lock files :(

Tags:

Gradle