Created
December 22, 2018 02:45
-
-
Save es0329/ccd332d5d74f63304ae77418f18fe58f to your computer and use it in GitHub Desktop.
Gradle task to create a single Ktor Jar with all dependencies.
This file contains 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
task fatJar(type: Jar) { | |
manifest { | |
attributes 'Implementation-Title': 'Gradle Fat Jar', | |
'Implementation-Version': version, | |
'Main-Class': 'io.ktor.server.netty.EngineMain' | |
} | |
baseName = project.name + '-all' | |
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } | |
with jar | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment