jponge / vertx-gradle-plugin

An opinionated Gradle plugin for Vert.x projects
Apache License 2.0
113 stars 15 forks source link

Repo's io.vertx.vertx-plugin.properties conflicts with the Gradle-generated plugin properties file #42

Closed k-mack closed 4 years ago

k-mack commented 4 years ago

Expected Behavior

./gradlew assemble --warning-mode=fail succeeds.

Current Behavior

./gradlew clean assemble --warning-mode=fail

> Task :processResources
Copying or archiving duplicate paths with the default duplicates strategy has been deprecated. This is scheduled to be removed in Gradle 7.0. Duplicate path: "META-INF/gradle-plugins/io.vertx.vertx-plugin.properties". Explicitly set the duplicates strategy to 'DuplicatesStrategy.INCLUDE' if you want to allow duplicate paths. Consult the upgrading guide for further information: https://docs.gradle.org/6.5/userguide/upgrading_version_5.html#implicit_duplicate_strategy_for_copy_or_archive_tasks_has_been_deprecated

FAILURE: Build failed with an exception.

* What went wrong:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 810ms
8 actionable tasks: 7 executed, 1 from cache

Context

java-gradle-plugin generates the plugin descriptor in the JAR file’s META-INF directory, but the repository already has this descriptor in its src/main/resources. When the plugin JAR is created, Gradle throws a deprecation warning as the descriptor is duplicated.