From d80b6c2de03faa282814e6923972e346178d4475 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 9 Apr 2024 18:23:49 +0900 Subject: [PATCH] Publish to maven only as beta Signed-off-by: shedaniel --- build.gradle | 2 +- gradle.properties | 1 + neoforge/build.gradle | 2 +- neoforge/src/main/resources/META-INF/neoforge.mods.toml | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 0b402b79..98fcf56a 100644 --- a/build.gradle +++ b/build.gradle @@ -55,7 +55,7 @@ allprojects { def runNumber = (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv("GITHUB_RUN_NUMBER")) if (!ext.isSnapshot) { - version = rootProject.base_version + "." + runNumber + version = rootProject.base_version + "." + runNumber + rootProject.version_suffix archivesBaseName = rootProject.archives_base_name } else { version = rootProject.base_version + "-PR." + System.getenv("PR_NUM") + "." + runNumber diff --git a/gradle.properties b/gradle.properties index d68294d5..f31d1ca8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,6 +12,7 @@ archives_base_name=architectury archives_base_name_snapshot=architectury-snapshot base_version=12.0 maven_group=dev.architectury +version_suffix=-beta fabric_loader_version=0.15.9 fabric_api_version=0.96.14+1.20.5 diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 046d6703..7da02720 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -104,7 +104,7 @@ publishing { } repositories { - if (System.getenv("MAVEN_PASS") != null && rootProject.neoforge_pr == "") { + if (System.getenv("MAVEN_PASS") != null) { maven { url = "https://deploy.shedaniel.me/" credentials { diff --git a/neoforge/src/main/resources/META-INF/neoforge.mods.toml b/neoforge/src/main/resources/META-INF/neoforge.mods.toml index b4b44a1a..22dfdf49 100644 --- a/neoforge/src/main/resources/META-INF/neoforge.mods.toml +++ b/neoforge/src/main/resources/META-INF/neoforge.mods.toml @@ -17,14 +17,14 @@ license = "LGPL-3" [[dependencies.architectury]] modId = "minecraft" type = "required" -versionRange = "[1.20.4,)" +versionRange = "[1.20.5,)" ordering = "NONE" side = "BOTH" [[dependencies.architectury]] modId = "neoforge" type = "required" -versionRange = "[20.4.77-beta,)" +versionRange = "[20.5.0-alpha.24w14a,)" ordering = "NONE" side = "BOTH"