Skip to content

Instantly share code, notes, and snippets.

@CharlieKuharski
Last active August 28, 2015 04:39
Gradle file
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '1.2.2'
}
dependencies {
compile 'io.vertx:vertx-core:3.0.0'
}
repositories {
mavenCentral()
}
//NOTE: Add your class here
def mainVerticleDemo = "groovy:vertxio.demo.MyDemo"
mainClassName = "io.vertx.core.Starter"
run {
args = ["run", mainVerticleDemo]
}
jar {
manifest {
attributes 'Main-Verticle': mainVerticleDemo
}
}
shadowJar {
classifier = 'fat'
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
dependencies {
exclude(dependency('io.vertx:codegen'))
exclude(dependency('junit:junit'))
exclude(dependency('org.mvel:mvel2'))
exclude(dependency('log4j:log4j'))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment