Skip to content

Commit

Permalink
Use io.vertx.core.Launcher as the main class instead of MainVerticle
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorlf committed Jul 29, 2018
1 parent 5a9fc8f commit 12853dc
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ dependencies {
{{/each}}
}

mainClassName = '{{groupId}}.{{artifactId}}.MainVerticle'
mainClassName = 'io.vertx.core.Launcher'

shadowJar {
classifier = 'fat'
manifest {
attributes 'Main-Verticle': '{{groupId}}.{{artifactId}}.MainVerticle'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}

run {
args = ['run', mainClassName, "--launcher-class=io.vertx.core.Launcher"]
args = ['run', '{{groupId}}.{{artifactId}}.MainVerticle']
}

task wrapper(type: Wrapper) {
Expand Down

0 comments on commit 12853dc

Please sign in to comment.