Build all

This commit is contained in:
2026-03-28 20:54:05 +01:00
parent 2d75ee4ee8
commit bf4cec4ea5
5 changed files with 40 additions and 3 deletions
+32
View File
@@ -30,3 +30,35 @@ configure(subprojects.findAll { it.name != "common" }) {
}
}
tasks.register("buildAll") {
group = "build"
description = "Builds all subprojects and collects their remapped jars"
// Only build remapped jars (not full build)
dependsOn subprojects.collect { proj ->
proj.tasks.matching { it.name == "remapJar" }
}
doLast {
def outputDir = file("$buildDir/allJars")
outputDir.mkdirs()
subprojects.each { proj ->
def remapTask = proj.tasks.findByName("remapJar")
if (remapTask != null) {
def jarFile = remapTask.archiveFile.get().asFile
if (jarFile.exists() && !jarFile.name.contains("sources")) {
copy {
from jarFile
into outputDir
rename { "${proj.name}-${jarFile.name}" }
}
}
}
}
println "All remapped jars collected in: $outputDir"
}
}
+5
View File
@@ -0,0 +1,5 @@
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true
# IntelliJ IDEA is not yet fully compatible with configuration cache, see: https://github.com/FabricMC/fabric-loom/issues/1349
org.gradle.configuration-cache=false
+1 -1
View File
@@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
}
version = project.mod_version
version = "${project.mod_version}+mc${project.minecraft_version}"
group = project.maven_group
base {
+1 -1
View File
@@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
}
version = project.mod_version
version = "${project.mod_version}+mc${project.minecraft_version}"
group = project.maven_group
base {
+1 -1
View File
@@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
}
version = project.mod_version
version = "${project.mod_version}+mc${project.minecraft_version}"
group = project.maven_group
base {