Gradle migration failing from 4.10.x to 5.x

plugins

(Ashish Sharma) #1

All,

I am trying to migrate my project to Gradle 5.x from Gradle 4.10.x

The project uses the following custom plugins as visible in the plugin tree :

classpath
+--- maven-publish-support:maven-publish-support.gradle.plugin:0.2.0
|    \--- com.microservices:gradle-maven-publish-support-plugin:0.2.0
|         \--- com.microservices:gradle-maven-support-plugin:0.2.0
|              \--- com.github.ben-manes:gradle-versions-plugin:0.17.0
|                   \--- com.thoughtworks.xstream:xstream:1.4.10
|                        +--- joda-time:joda-time:1.6 -> 2.3
|                        +--- xmlpull:xmlpull:1.1.3.1
|                        \--- xpp3:xpp3_min:1.1.4c

With Gradle 5.x , the above custom plugins result in following exception trace and the build fails :

Caused by: java.lang.IllegalStateException: No value has been specified for this provider.
        at org.gradle.api.internal.provider.Providers$1.get(Providers.java:32)
        at org.gradle.api.internal.provider.DefaultPropertyState.get(DefaultPropertyState.java:133)
        at com.microservices.gradle.plugins.PublishingMavenPublishSupportExtension.isMainPublication(PublishingMavenPublishSupportExtension.java:31)
        at com.microservices.gradle.plugins.MavenPublishSupportPlugin.lambda$null$10(MavenPublishSupportPlugin.java:81)
        at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:173)
        at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:70)

Is this issue similar to this one

How can I fix this issue?

Gradle Scan : https://scans.gradle.com/s/qhtasswqw5mb6/

Please help