jponge / vertx-gradle-plugin

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

shadowJar task fails #64

Open aloussase opened 2 years ago

aloussase commented 2 years ago

When running the shadowJar task, it fails with the following error:

image

Here is my build.gradle

plugins {
    id 'io.vertx.vertx-plugin' version '1.3.0'
}

repositories {
    mavenCentral()
}

def vertxVersion = '4.2.5'

vertx {
    mainVerticle = 'io.github.aloussase.polimarket.App'
    vertxVersion = vertxVersion
}

dependencies {
    implementation "io.vertx:vertx-core:$vertxVersion"
    implementation "io.vertx:vertx-web:$vertxVersion"
    implementation "io.vertx:vertx-mail-client:$vertxVersion"
    implementation "io.vertx:vertx-redis-client:$vertxVersion"

    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
    implementation 'org.mindrot:jbcrypt:0.4'
    implementation 'org.tinylog:tinylog-impl:2.3.2'

    implementation 'org.postgresql:postgresql:42.3.1'
    implementation 'org.jdbi:jdbi3-core:3.27.2'
    implementation 'org.jdbi:jdbi3-postgres:3.27.2'
}
duruer commented 2 years ago

@jponge https://stackoverflow.com/questions/67377844/no-such-property-count-for-class-com-github-jengelman-gradle-plugins-shadow-tr

madewael commented 1 year ago

The problem is the version of id "com.github.johnrengelman.shadow" as used by this plugin. I think upgrading it to version "7.0.0" might resolve the issue.