Created
July 5, 2017 07:50
-
-
Save pcholt/177cfe06597582276f4c85ecf01c9da9 to your computer and use it in GitHub Desktop.
Build an excecutable jar from Kotlin
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
jar { | |
manifest { | |
attributes 'Main-Class': 'com.overswell.MainKt' | |
} | |
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this at the end of your build.gradle to create a fat jar with a Main class.