mirror of
https://github.com/chylex/Minecraft-Server-Properties-Reload.git
synced 2025-06-12 17:34:03 +02:00
Update build.gradle
This commit is contained in:
parent
dd6319e5be
commit
4e8efc1c22
@ -125,8 +125,18 @@ subprojects {
|
||||
|
||||
tasks.register("setupIdea") {
|
||||
group = "mod"
|
||||
dependsOn(project(":Forge").tasks.getByName("genIntellijRuns"))
|
||||
dependsOn(project(":Fabric").tasks.getByName("genSources"))
|
||||
|
||||
dependsOn(tasks.findByName("decompile"))
|
||||
|
||||
val forge = findProject(":Forge")
|
||||
if (forge != null) {
|
||||
dependsOn(forge.tasks.getByName("genIntellijRuns"))
|
||||
}
|
||||
|
||||
val fabric = findProject(":Fabric")
|
||||
if (fabric != null) {
|
||||
dependsOn(fabric.tasks.getByName("genSources"))
|
||||
}
|
||||
}
|
||||
|
||||
val copyJars = tasks.register<Copy>("copyJars") {
|
||||
@ -134,13 +144,13 @@ val copyJars = tasks.register<Copy>("copyJars") {
|
||||
duplicatesStrategy = EXCLUDE
|
||||
|
||||
for (subproject in subprojects) {
|
||||
dependsOn(subproject.tasks.build)
|
||||
dependsOn(subproject.tasks.assemble)
|
||||
from(subproject.base.libsDirectory.file("${subproject.base.archivesName.get()}-$jarVersion.jar"))
|
||||
}
|
||||
|
||||
into(file("${project.buildDir}/dist"))
|
||||
}
|
||||
|
||||
tasks.build {
|
||||
tasks.assemble {
|
||||
finalizedBy(copyJars)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user