Remove loom bootstrap (#1261)

* Remove bootstrap, its no longer required as Gradle has a nicer error message for outdated java.

* No need to check idea or gradle version
This commit is contained in:
modmuss
2025-02-09 23:27:48 +00:00
committed by GitHub
parent 34edc76a50
commit e3cd4947bf
9 changed files with 8 additions and 203 deletions

View File

@@ -54,15 +54,6 @@ repositories {
mavenCentral()
}
configurations {
bootstrap {
transitive = false
}
compileClasspath.extendsFrom bootstrap
runtimeClasspath.extendsFrom bootstrap
testRuntimeClasspath.extendsFrom bootstrap
}
configurations.configureEach {
resolutionStrategy {
failOnNonReproducibleResolution()
@@ -101,8 +92,6 @@ sourceSets {
dependencies {
implementation gradleApi()
bootstrap project(":bootstrap")
// libraries
implementation libs.commons.io
implementation libs.gson
@@ -180,7 +169,6 @@ jar {
attributes 'Implementation-Version': project.version
}
from configurations.bootstrap.collect { it.isDirectory() ? it : zipTree(it) }
from sourceSets.commonDecompiler.output.classesDirs
from sourceSets.cfr.output.classesDirs
from sourceSets.fernflower.output.classesDirs
@@ -249,7 +237,7 @@ gradlePlugin {
plugins {
fabricLoom {
id = 'fabric-loom'
implementationClass = 'net.fabricmc.loom.bootstrap.LoomGradlePluginBootstrap'
implementationClass = 'net.fabricmc.loom.LoomGradlePlugin'
}
}
}
@@ -341,21 +329,6 @@ publishing {
}
}
// Need to tweak this file to pretend we are compatible with j8 so the bootstrap will run.
tasks.withType(GenerateModuleMetadata).configureEach {
doLast {
def file = outputFile.get().asFile
def metadata = new groovy.json.JsonSlurper().parseText(file.text)
metadata.variants.each {
it.attributes["org.gradle.jvm.version"] = 8
}
file.text = groovy.json.JsonOutput.toJson(metadata)
}
}
// A task to output a json file with a list of all the test to run
tasks.register('writeActionsTestMatrix') {
doLast {