diff options
author | isXander <xander@isxander.dev> | 2024-05-29 22:42:46 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2024-05-29 22:42:46 +0100 |
commit | 646c7bac69dba476b3f9171568091eb23a86edaa (patch) | |
tree | 83727744315b956120fb573f9ecd883837b63099 /build.gradle.kts | |
parent | 41253828df7c2066b5df29a32aa8e512f34ad85a (diff) | |
download | YetAnotherConfigLib-646c7bac69dba476b3f9171568091eb23a86edaa.tar.gz YetAnotherConfigLib-646c7bac69dba476b3f9171568091eb23a86edaa.tar.bz2 YetAnotherConfigLib-646c7bac69dba476b3f9171568091eb23a86edaa.zip |
1.21 compat
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 26ef177..13dcede 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,7 @@ val isNeoforge = loader == "neoforge" val isForge = loader == "forge" val isForgeLike = isNeoforge || isForge -val mcVersion = stonecutter.current.version +val mcVersion = findProperty("mcVersion").toString() group = "dev.isxander" val versionWithoutMC = "3.4.4" @@ -111,7 +111,6 @@ repositories { forRepository { maven("https://thedarkcolour.github.io/KotlinForForge/") } filter { includeGroup("thedarkcolour") } } - maven("https://maven.neoforged.net/releases/") } @@ -119,7 +118,7 @@ dependencies { fun Dependency?.jij() = this?.let(::include) fun Dependency?.forgeRuntime() = this?.takeIf { isForgeLike }?.let { "forgeRuntimeLibrary"(it) } - minecraft("com.mojang:minecraft:${if (mcVersion.contains("beta")) "1.20.5-pre2" else mcVersion}") + minecraft("com.mojang:minecraft:$mcVersion") mappings(loom.layered { optionalProp("deps.quiltMappings") { |