Gradle-play-publisher: Collision with latest kotlin gradle script

Created on 7 Jun 2018  路  8Comments  路  Source: Triple-T/gradle-play-publisher

After updating to Gradle 4.8, the following conflict occurs when using play publisher

e: /Users/pandanomic/.gradle/caches/4.8/gradle-kotlin-dsl-accessors/rek2a72n8v7nmfkjktfsds14/src/org/gradle/kotlin/dsl/accessors.kt:104:150: Platform declaration clash: The following declarations have the same JVM signature (getExt(Lorg/gradle/api/NamedDomainObjectContainer;)Lorg/gradle/api/plugins/ExtraPropertiesExtension;):
    fun NamedDomainObjectContainer<BaseVariantOutput>.<get-ext>(): ExtraPropertiesExtension defined in org.gradle.kotlin.dsl in file accessors.kt
    fun NamedDomainObjectContainer<PlayAccountConfig>.<get-ext>(): ExtraPropertiesExtension defined in org.gradle.kotlin.dsl in file accessors.kt
bug

Most helpful comment

@p-schneider Thanks for the update! Since there's nothing we can do on our end and a fix is now available, I'm going to close this issue. Feel free to keep posting updates for those subscribed to this issue. 馃槉

All 8 comments

Is this with v1.2.2?

Is that released? I only see the latest release as 1.2.1

Nevermind, I mostly wanted to know if this was a snapshot build or not. Anyway, for now, you'll have to downgrade to Gradle 4.7 until something comes out of https://github.com/gradle/kotlin-dsl/issues/905. Sorry! 馃槉

Can do, thanks!

So in gradle 4.8.x using kotlin-dsl this plugin will not work, but unless other plugins are stopping you from upgrading, you should upgrade to gradle 4.9.

The fix now made into the kotlin-dsl 0.18.4 release which you can test in gradle 4.9 RC1
(You can update your gradlew with ./gradlew wrapper --gradle-version=4.9-rc-1.)

@p-schneider Thanks for the update! Since there's nothing we can do on our end and a fix is now available, I'm going to close this issue. Feel free to keep posting updates for those subscribed to this issue. 馃槉

With the stable release of Gradle 4.9 it is now working again like it was with Gradle 4.7.

Was this page helpful?
0 / 5 - 0 ratings