Hi everyone! I'm using `gradle-kotlin-dsl-4.1-2017...
# gradle
j
Hi everyone! I'm using
gradle-kotlin-dsl-4.1-20170707032407+0000-all
. I imported the plug-in correctly:
id("com.github.johnrengelman.shadow") version "2.0.1"
, but when I try to write the task in order to assemble the JAR file, it's not doing anything. This is the
ShadowJar
task:
Copy code
tasks.withType<ShadowJar> {
  baseName = project.name
  classifier = "shadow" // fat, shadow
  manifest.attributes.apply {
    put("Application-Name", project.name)
    put("Build-Date", ZonedDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.ISO_DATE_TIME))
    //put("Build-Number", )
    put("Created-By", System.getProperty("user.name"))
    put("Gradle-Version", gradle.gradleVersion)
    put("Implementation-Version", "${project.version}")
    put("JDK-Version", System.getProperty("java.version"))
    //put("Main-Class", "io.shido.MainVerticle")
    put("Main-Verticle", "io.shido.MainVerticle")
  }
  mergeServiceFiles({ include("META-INF/services/io.vertx.core.spi.VerticleFactory") }) // TODO: This doesn't work :(
  version = "${project.version}"
}
1 reply Does the shadow jar task show up in the list of tasks when you run
./gradlew tasks
?