Skip to content

Instantly share code, notes, and snippets.

@usmansaleem
Last active December 19, 2017 06:19
Show Gist options
  • Save usmansaleem/5ad9d60a0a3ae2f4d210c692ca180897 to your computer and use it in GitHub Desktop.
Save usmansaleem/5ad9d60a0a3ae2f4d210c692ca180897 to your computer and use it in GitHub Desktop.
Gradle build file for vertx-net-server project
plugins {
id 'io.vertx.vertx-plugin' version "0.0.6"
id "org.jetbrains.kotlin.jvm" version "1.2.10"
}
repositories {
jcenter()
}
dependencies {
compile 'io.vertx:vertx-lang-kotlin'
compile "io.vertx:vertx-web"
//kotlin dependencies
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8"
//slf4j/logback logging
compile "ch.qos.logback:logback-classic:1.2.3"
//test dependencies
testCompile "org.jetbrains.kotlin:kotlin-test"
testCompile "org.jetbrains.kotlin:kotlin-test-junit"
}
//by default Kotlin targets 1.6
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
vertx {
mainVerticle = "info.usmans.blog.vertx.MainVerticle"
}
//override generated jar name without version
shadowJar {
baseName = 'vertx-net-server'
version = null
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment