Last active
November 21, 2025 17:00
-
-
Save ahndmal/c5c00965567c55dd65efc65143a5fd5c 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' | |
| } | |
| version = '1.0.0' | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| implementation 'commons-io:commons-io:2.6' | |
| } | |
| tasks.jar { | |
| manifest { | |
| attributes["Main-Class"] = "com.andmal.Main" | |
| } | |
| duplicatesStrategy = DuplicatesStrategy.EXCLUDE | |
| from sourceSets.main.output | |
| dependsOn(configurations.runtimeClasspath) | |
| from({ | |
| configurations.runtimeClasspath.filter { it.name.endsWith("jar") }.map { zipTree(it) } | |
| }) | |
| } | |
| tasks.register('uberJar', Jar) { | |
| archiveClassifier = "uber" | |
| from sourceSets.main.output | |
| dependsOn configurations.runtimeClasspath | |
| from { | |
| configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment