1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00
Files
Rainbow/client/build.gradle.kts
2025-10-16 09:43:04 +00:00

32 lines
761 B
Plaintext

import net.fabricmc.loom.task.RemapJarTask
plugins {
id("rainbow.base-conventions")
id("rainbow.publish-conventions")
}
dependencies {
// Implement namedElements so IDEs can use it correctly, but include the remapped build
implementation(project(path = ":rainbow", configuration = "namedElements"))
include(project(":rainbow"))
}
tasks {
val copyJarTask = register<Copy>("copyRainbowClientJar") {
group = "build"
val remapJarTask = getByName<RemapJarTask>("remapJar")
dependsOn(remapJarTask)
from(remapJarTask.archiveFile)
rename {
"Rainbow.jar"
}
into(project.layout.buildDirectory.file("libs"))
}
named("build") {
dependsOn(copyJarTask)
}
}