mirror of
https://github.com/CPTProgrammer/ChatPlus.git
synced 2025-05-13 15:28:13 +08:00
Compare commits
No commits in common. "dev" and "v1.0.0" have entirely different histories.
@ -119,8 +119,6 @@ tasks.register("buildAll") {
|
|||||||
|
|
||||||
logger.lifecycle("Using Java ${javaToolchain.metadata.javaRuntimeVersion} (path=\"${projectJavaHome}\")")
|
logger.lifecycle("Using Java ${javaToolchain.metadata.javaRuntimeVersion} (path=\"${projectJavaHome}\")")
|
||||||
|
|
||||||
def failedVersions = new ArrayList<String>()
|
|
||||||
|
|
||||||
project.minecraftVersions.each { version ->
|
project.minecraftVersions.each { version ->
|
||||||
logger.lifecycle("================ Building for Minecraft ${version} ================")
|
logger.lifecycle("================ Building for Minecraft ${version} ================")
|
||||||
// TODO: Refactor this (is there a better approach?)
|
// TODO: Refactor this (is there a better approach?)
|
||||||
@ -133,14 +131,11 @@ tasks.register("buildAll") {
|
|||||||
def result = execOutput.result.get()
|
def result = execOutput.result.get()
|
||||||
def output = execOutput.standardOutput.asText.get()
|
def output = execOutput.standardOutput.asText.get()
|
||||||
def error = execOutput.standardError.asText.get()
|
def error = execOutput.standardError.asText.get()
|
||||||
logger.lifecycle("[Minecraft ${version}] BUILD ${result.exitValue == 0 ? "SUCCESSFUL" : "FAILED"}. Process exited with code: ${result.exitValue}")
|
logger.lifecycle("[Minecraft ${version}] BUILD ${result.exitValue == 0 ? "SUCCESS" : "FAILED"}. Process exited with code: ${result.exitValue}")
|
||||||
if (result.exitValue != 0) {
|
if (result.exitValue != 0) {
|
||||||
failedVersions.addLast(version as String)
|
|
||||||
logger.lifecycle("[Minecraft ${version}] Error: ${error}")
|
logger.lifecycle("[Minecraft ${version}] Error: ${error}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!failedVersions.isEmpty()) throw new GradleException("Build failed for Minecraft versions: ${failedVersions.join(", ")}")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user