Yes, there is

This commit is contained in:
Telesphoreo 2023-12-02 01:17:27 -06:00
parent 6a8228947b
commit 3d70100119

View File

@ -72,15 +72,19 @@ subprojects {
}
tasks.clean {
// Is there any way to not need to specify each subproject?
dependsOn(":server:clean")
dependsOn(":proxy:clean")
dependsOn(subprojects.map {
it.project.tasks.clean
})
}
tasks.create<Copy>("copyJars") {
dependsOn(tasks.jar)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
// Is there any way to not need to specify each subproject?
from(tasks.getByPath(":server:shadowJar"))
from(tasks.getByPath(":proxy:jar"))
from(subprojects.map {
it.project.tasks.shadowJar
})
from(subprojects.map {
it.project.tasks.jar
})
into(file("build/libs"))
}