From 880706eaa9e003d20caf59fa6e33c6b715d3a0b5 Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 3 Aug 2021 22:30:25 +0200 Subject: [PATCH] Fix the architectury-loom plugin's maven version range to not include loom 0.7.4 --- build.gradle.kts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ef559ee..33391f4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,7 @@ plugins { id("dev.architectury.loom") version ( if (JavaVersion.current() >= JavaVersion.VERSION_16) "[0.9.0.153, 0.9.1[" - else "[0.7.3.152, 0.8.0[" + else "[0.7.3.152, 0.7.4[" ) apply false id("com.github.ben-manes.versions") version "0.39.0" id("net.kyori.indra.git") version "2.0.5" @@ -29,16 +29,14 @@ group = "fr.username404" version = "0.3.2" val groupAndName = "${rootProject.group}.${rootProject.name.toLowerCase()}" -architectury { - minecraft = rootProject.property("minecraft") as String -} - val javaVer: String = "8" val sourceJavaVer: String = "16" val kotlinVer: String by rootProject val kotlinBaseVer = kotlinVer.substring(0..2) val serializationVer: String by rootProject -val mcBase: String = rootProject.architectury.minecraft.substring(0..3) +val mcBase: String = (rootProject.property("minecraft") as String).also { + architectury { minecraft = it } +}.substring(0..3) val kotlinX: String = "org.jetbrains.kotlinx" val toolchainJavaVersion = Action {