Last active
August 28, 2015 04:39
Gradle file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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