[norelease] Switch to loom 0.9, crane and quiltflower

(I can't believe that ALL of these work out of the box)
This commit is contained in:
Max
2021-06-22 12:30:45 +02:00
parent 4635479058
commit c12524b7aa
8 changed files with 12 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
plugins {
id "architectury-plugin" version "3.2-SNAPSHOT"
id "dev.architectury.loom" version "0.8.0-SNAPSHOT" apply false
id "dev.architectury.loom" version "0.9.0-SNAPSHOT" apply false
id 'io.github.juuxel.loom-quiltflower' version '1.1.1' apply false
id "org.cadixdev.licenser" version "0.5.0"
id "com.matthewprenger.cursegradle" version "1.4.0" apply false
id "maven-publish"
@@ -12,11 +13,20 @@ architectury {
subprojects {
apply plugin: "dev.architectury.loom"
apply plugin: "io.github.juuxel.loom-quiltflower"
loom {
silentMojangMappingsLicense()
useFabricMixin = true
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings loom.layered {
officialMojangMappings()
crane("dev.architectury:crane:1.17+build.9")
}
}
}
allprojects {

View File

@@ -3,8 +3,6 @@ loom {
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings minecraft.officialMojangMappings()
// We depend on fabric loader here to use the fabric @Environment annotations
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"

View File

@@ -26,8 +26,6 @@ repositories {
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings minecraft.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
modCompileOnly("com.terraformersmc:modmenu:${rootProject.mod_menu_version}") { transitive false }

View File

@@ -22,8 +22,6 @@ architectury {
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings loom.officialMojangMappings()
forge "net.minecraftforge:forge:${rootProject.architectury.minecraft}-${rootProject.forge_version}"
implementation(project(path: ":common")) {

View File

@@ -3,6 +3,7 @@ pluginManagement {
maven { url "https://maven.fabricmc.net/" }
maven { url "https://maven.architectury.dev/" }
maven { url "https://files.minecraftforge.net/maven/" }
maven { url "https://server.bbkr.space/artifactory/libs-release/" }
gradlePluginPortal()
}
}

View File

@@ -1,6 +1,4 @@
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings loom.officialMojangMappings()
// We depend on fabric loader here to use the fabric @Environment annotations
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"

View File

@@ -9,8 +9,6 @@ architectury {
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"

View File

@@ -17,8 +17,6 @@ architectury {
}
dependencies {
minecraft "com.mojang:minecraft:${gradle.rootProject.architectury.minecraft}"
mappings loom.officialMojangMappings()
forge "net.minecraftforge:forge:${gradle.rootProject.architectury.minecraft}-${rootProject.forge_version}"
implementation project(path: ":forge", configuration: "dev")