added jar task to build.gradle

This commit is contained in:
Yannik Bretschneider 2021-06-04 14:58:19 +02:00
parent cc74acf34f
commit c0aac8cd31

View File

@ -14,6 +14,20 @@ test {
maxParallelForks = 1
}
var mainClassName = "uulm.teamname.marvelous.server.Server"
jar {
manifest {
attributes "Main-Class": "$mainClassName"
}
from {
configurations.runtimeClasspath.collect {it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
dependencies {
implementation project(':Gamelib')