Hi everyone! I'm using `gradle-kotlin-dsl-4.1-2017...
# gradle
x
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}"
}
Yep...it's there:
Copy code
gorre@uplink:~/Workshop/Development/kotlin/kotlin-vertx3$ ./gradlew tasks

> Task :tasks

...

Shadow tasks
------------
knows - Do you know who knows?
shadowJar - Create a combined JAR of project and runtime dependencies

...

To see all tasks and more detail, run gradlew tasks --all

To see more detail about a task, run gradlew help --task <task>


BUILD SUCCESSFUL in 5s
1 actionable task: 1 executed