jponge / vertx-gradle-plugin

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

Not compatible with Gradle platform dependencies (BOM) #38

Closed kboom closed 4 years ago

kboom commented 4 years ago

It seems that the fact that this plugin uses nebula dependency resolver breaks any other Gradle-native platform imports.

Steps to reproduce: Include any BOM using platform dependency notation:

plugins {
    id("io.vertx.vertx-plugin") version "1.0.3"
}

vertx {
    launcher = "com.tesco.identity.orchestrator.application.Application"
}

dependencies {
    implementation(platform("my.bom:bom:VERSION"))
}

Note that this has been tested with and without this plugin and with it fails with: Could not resolve all dependencies for configuration ':infrastructure:compileClasspath'. Problems reading data from Binary store in /private/var/folders/c6/c153tzb94qg0f3ngg122rx400000gn/T/gradle4729857473002228471.bin offset 139782 exists? true Corrupt serialized resolution result. Cannot find selected module (128) for constraint apiElements -> x.y:z:VERSION

While it works flawlessly without this plugin enabled.

Gradle: 6.4.1

jponge commented 4 years ago

Same as #39 right?

jponge commented 4 years ago

Done