Build dependencies when packaging a server jar

This commit is contained in:
ButterscotchVanilla
2021-07-07 19:19:46 -04:00
parent cbf37a7c9c
commit 5b2918acb2

View File

@@ -36,7 +36,8 @@ dependencies {
testImplementation 'junit:junit:4.12'
}
jar {
subprojects.each { subproject -> evaluationDependsOn(subproject.path) }
task serverJar (type: Jar, dependsOn: subprojects.tasks['build']) {
manifest {
attributes 'Main-Class': 'io.eiren.vr.Main'
}
@@ -44,4 +45,5 @@ jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}