Created
March 4, 2018 01:08
-
-
Save ondrej-kvasnovsky/fab30c08a3f0b340bbc4a652e6de8b53 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 '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