Archi 3.0 migration

This commit is contained in:
samolego 2021-03-03 14:58:46 +01:00
parent 944585ea2f
commit 2b582c004e
4 changed files with 9 additions and 7 deletions

View File

@ -10,8 +10,8 @@ buildscript {
plugins {
id "architectury-plugin" version "2.0.68"
id "forgified-fabric-loom" version "0.6.64" apply false
id "architectury-plugin" version "3.0.94"
id "forgified-fabric-loom" version "0.6.72" apply false
}

View File

@ -18,16 +18,17 @@ configurations {
architectury {
platformSetupLoomIde()
fabric()
}
dependencies {
modImplementation("net.fabricmc:fabric-loader:${rootProject.loader_version}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_version}")
compileOnly(project(path: ":common")) {
implementation(project(path: ":common")) {
transitive = false
}
runtimeOnly(project(path: ":common", configuration: "transformDevelopmentFabric")) {
developmentFabric(project(path: ":common")) {
transitive = false
}
shadow(project(path: ":common", configuration: "transformProductionFabric")) {

View File

@ -8,6 +8,7 @@ configurations {
architectury {
platformSetupLoomIde()
forge()
}
loom {
@ -21,10 +22,10 @@ dependencies {
forge("net.minecraftforge:forge:${rootProject.minecraft_version}-${rootProject.forge_version}")
modCompile("me.shedaniel:architectury:${rootProject.architectury_version}:forge")
compileOnly(project(path: ":common")) {
implementation(project(path: ":common")) {
transitive = false
}
runtimeOnly(project(path: ":common", configuration: "transformDevelopmentForge")) {
developmentForge(project(path: ":common")) {
transitive = false
}
shadow(project(path: ":common", configuration: "transformProductionForge")) {

View File

@ -5,7 +5,7 @@ pluginManagement {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
maven { url "https://dl.bintray.com/shedaniel/cloth" }
maven { url "https://maven.shedaniel.me/" }
maven { url "https://files.minecraftforge.net/maven/" }
gradlePluginPortal()
}