Gradle migration failing from 4.10.x to 5.x


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 :

+--- 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:
|                        \--- 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(
        at org.gradle.api.internal.provider.DefaultPropertyState.get(
        at com.microservices.gradle.plugins.PublishingMavenPublishSupportExtension.isMainPublication(
        at com.microservices.gradle.plugins.MavenPublishSupportPlugin.lambda$null$10(
        at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(
        at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(

Is this issue similar to this one

How can I fix this issue?

Gradle Scan :

Please help