diff --git a/build.gradle.kts b/build.gradle.kts index fb6b8fb1b..1de78d8f6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -38,7 +38,7 @@ import java.util.zip.Deflater plugins { java `maven-publish` - id("architectury-plugin") version "3.4-SNAPSHOT" apply false + id("architectury-plugin") version "3.4-SNAPSHOT" id("dev.architectury.loom") version "1.6.+" apply false id("me.modmuss50.mod-publish-plugin") version "0.3.4" apply false // https://github.com/modmuss50/mod-publish-plugin id("com.github.johnrengelman.shadow") version "8.1.1" apply false @@ -48,11 +48,6 @@ plugins { } println("Steam 'n' Rails v${"mod_version"()}") -apply(plugin = "architectury-plugin") - -architectury { - minecraft = "minecraft_version"() -} val isRelease = System.getenv("RELEASE_BUILD")?.toBoolean() ?: false val buildNumber = System.getenv("GITHUB_RUN_NUMBER")?.toInt() @@ -61,6 +56,10 @@ val gitHash = "\"${calculateGitHash() + (if (hasUnstaged()) "-modified" else "") extra["gitHash"] = gitHash +architectury { + minecraft = "minecraft_version"() +} + allprojects { apply(plugin = "java") apply(plugin = "architectury-plugin")