Gradle-play-publisher: Conflict with maven-publish plugin

Created on 11 Jul 2019  路  4Comments  路  Source: Triple-T/gradle-play-publisher

Describe the bug

GPP conflicts with the core Gradle maven-publish plugin. The cause is that GPP uses the task name publish for publishing all artifacts.

How To Reproduce

plugins {
    id 'com.github.triplet.play' version '2.2.1'
    id 'maven-publish'
}

Versions

  • Gradle Play Publisher: 2.2.1
  • Gradle Wrapper: 5.4.1
  • Android Gradle Plugin: 3.5.0-beta05

Tasks executed

publish

Expected behavior

To not throw an error message for an existing task.

Additional context (if a crash, provide stack trace)

Gradle error:
Cannot add task 'publish' as a task with that name already exists.
bug

All 4 comments

Apply the maven plugin first. GPP knows how to handle the conflicts.

Gotcha, that fixed it. Thanks

Awesome! I've had several people run into this, so I'm going to add some docs about it.

Was this page helpful?
0 / 5 - 0 ratings