2021-01-25 18:14:09 +08:00
|
|
|
import net.fabricmc.loom.task.RemapJarTask
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
base
|
|
|
|
}
|
|
|
|
|
|
|
|
applyCommonConfiguration()
|
|
|
|
|
|
|
|
tasks.register<Jar>("jar") {
|
|
|
|
val remapFabric = project(":worldedit-fabric").tasks.named<RemapJarTask>("remapShadowJar")
|
|
|
|
dependsOn(
|
2021-06-14 02:32:38 +08:00
|
|
|
remapFabric,
|
|
|
|
project(":worldedit-forge").tasks.named("reobfShadowJar")
|
2021-01-25 18:14:09 +08:00
|
|
|
)
|
|
|
|
from(zipTree({remapFabric.get().archiveFile}))
|
2021-06-14 02:32:38 +08:00
|
|
|
from(zipTree({project(":worldedit-forge").tasks.getByName("shadowJar").outputs.files.singleFile}))
|
2021-01-25 18:14:09 +08:00
|
|
|
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
archiveClassifier.set("dist")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named("assemble") {
|
|
|
|
dependsOn("jar")
|
|
|
|
}
|