Build all
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user