Skip to content

Instantly share code, notes, and snippets.

@ondrej-kvasnovsky
Created March 4, 2018 01:08
Show Gist options
  • Save ondrej-kvasnovsky/fab30c08a3f0b340bbc4a652e6de8b53 to your computer and use it in GitHub Desktop.
Save ondrej-kvasnovsky/fab30c08a3f0b340bbc4a652e6de8b53 to your computer and use it in GitHub Desktop.
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '2.0.2'
}
repositories {
mavenCentral()
}
group 'vertx-sockjs-counter'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
vertxVersion = '3.5.0'
}
dependencies {
compile "io.vertx:vertx-core:$vertxVersion"
compile "io.vertx:vertx-web:$vertxVersion"
}
def mainVerticle = "counter.CounterVerticle"
mainClassName = "io.vertx.core.Starter"
run {
args = ["run", mainVerticle]
}
jar {
manifest {
attributes 'Main-Verticle': mainVerticle
}
}
shadowJar {
classifier = 'fat'
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
into 'webroot', {
from 'webroot'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment