Skip to content

Instantly share code, notes, and snippets.

@admiral0
Last active August 29, 2015 14:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save admiral0/31bc22e5cc7228e9110f to your computer and use it in GitHub Desktop.
Save admiral0/31bc22e5cc7228e9110f to your computer and use it in GitHub Desktop.
Kotlin + Vert.x 3
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:0.12.213'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.1'
}
}
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
version = '1.0-SNAPSHOT'
def mainClass = '' //Change this to an implementation of AbstractVerticle
repositories {
jcenter()
}
shadowJar {
classifier = 'fat'
manifest {
attributes 'Main-Class': 'io.vertx.core.Starter'
attributes 'Main-Verticle': mainClass
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
dependencies {
compile 'com.google.guava:guava:18.0'
compile 'org.jetbrains.kotlin:kotlin-stdlib:0.12.213'
compile 'io.vertx:vertx-core:3.0.0-milestone6'
testCompile 'junit:junit:4.11'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment