Skip to content

Commit

Permalink
Merge pull request #257 from Sylfare/feat/remove_reobf
Browse files Browse the repository at this point in the history
feat: use Mojang-mapped jars instead of reobfuscated ones
  • Loading branch information
oddlama committed Jul 8, 2024
2 parents a82b861 + 3be6661 commit 85c7084
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,35 @@ configure(subprojects.filter {
dependencies {
paperDevBundle("1.20.6-R0.1-SNAPSHOT")
}
}

tasks {
build {
dependsOn("reobfJar")
}
// All Projects with jar shadow
configure(subprojects.filter {
listOf("vane-regions", "vane-core", "vane-portals", "vane-regions").contains(it.name)
}) {
tasks.create<Copy>("copyJar") {
evaluationDependsOn(project.path)
from(tasks.findByPath("shadowJar"))
into("${project.rootProject.projectDir}/target")
rename("(.+)-dev-all.jar", "$1.jar")
}
}

// All Projects except proxies and annotations.
// All Projects without jar shadow
configure(subprojects.filter {
!listOf("vane-annotations", "vane-velocity", "vane-proxy-core").contains(it.name)
listOf("vane-admin", "vane-bedtime", "vane-enchantments", "vane-permissions", "vane-trifles").contains(it.name)
}) {
tasks.create<Copy>("copyJar") {
from(tasks.reobfJar)
from(tasks.jar)
into("${project.rootProject.projectDir}/target")
rename("(.+)-dev.jar", "$1.jar")
}
}

// All Projects except proxies and annotations.
configure(subprojects.filter {
!listOf("vane-annotations", "vane-velocity", "vane-proxy-core").contains(it.name)
}) {
tasks {
build {
dependsOn("copyJar")
Expand Down

0 comments on commit 85c7084

Please sign in to comment.