mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
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:
29
build.gradle
29
build.gradle
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user