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("copyRainbowClientJar") { group = "build" val remapJarTask = getByName("remapJar") dependsOn(remapJarTask) from(remapJarTask.archiveFile) rename { "Rainbow.jar" } into(project.layout.buildDirectory.file("libs")) } named("build") { dependsOn(copyJarTask) } }