mirror of
https://github.com/GeyserMC/Rainbow.git
synced 2025-12-19 14:59:16 +00:00
Fix actions (I think)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import net.fabricmc.loom.task.RemapJarTask
|
||||
|
||||
plugins {
|
||||
id("rainbow.base-conventions")
|
||||
id("rainbow.publish-conventions")
|
||||
@@ -8,3 +10,22 @@ dependencies {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user