diff options
-rw-r--r-- | build.gradle.kts | 4 | ||||
-rw-r--r-- | fabric/build.gradle.kts | 6 | ||||
-rw-r--r-- | forge/build.gradle.kts | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 42f57e0..d85c3fb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,8 +12,9 @@ architectury { minecraft = libs.versions.minecraft.get() } -version = "2.5.1+1.20" +version = "2.5.1-beta.1+1.20" +val isBeta = "beta" in version.toString() val changelogText = rootProject.file("changelogs/${project.version}.md").takeIf { it.exists() }?.readText() ?: "No changelog provided." val snapshotVer = "${grgit.branch.current().name.replace('/', '.')}-SNAPSHOT" @@ -36,6 +37,7 @@ allprojects { } ext["changelogText"] = changelogText + ext["isBeta"] = isBeta repositories { mavenCentral() diff --git a/fabric/build.gradle.kts b/fabric/build.gradle.kts index afdf0e4..8e6b4fa 100644 --- a/fabric/build.gradle.kts +++ b/fabric/build.gradle.kts @@ -113,6 +113,7 @@ components["java"].withGroovyBuilder { } val changelogText: String by ext +val isBeta: Boolean by ext val modrinthId: String by project if (modrinthId.isNotEmpty()) { @@ -121,7 +122,7 @@ if (modrinthId.isNotEmpty()) { projectId.set(modrinthId) versionName.set("${project.version} (Fabric)") versionNumber.set("${project.version}-fabric") - versionType.set("release") + versionType.set(if (isBeta) "beta" else "release") uploadFile.set(tasks["remapJar"]) gameVersions.set(listOf("1.20-pre2")) loaders.set(listOf("fabric", "quilt")) @@ -141,7 +142,7 @@ if (hasProperty("curseforge.token") && curseforgeId.isNotEmpty()) { }) id = curseforgeId - releaseType = "release" + releaseType = if (isBeta) "beta" else "release" addGameVersion("1.20-Snapshot") addGameVersion("Fabric") addGameVersion("Java 17") @@ -152,6 +153,7 @@ if (hasProperty("curseforge.token") && curseforgeId.isNotEmpty()) { options(closureOf<me.hypherionmc.cursegradle.Options> { forgeGradleIntegration = false + fabricIntegration = false }) } } diff --git a/forge/build.gradle.kts b/forge/build.gradle.kts index f1f2721..88e1b5f 100644 --- a/forge/build.gradle.kts +++ b/forge/build.gradle.kts @@ -120,6 +120,7 @@ components["java"].withGroovyBuilder { } val changelogText: String by ext +val isBeta: Boolean by ext val modrinthId: String by project if (modrinthId.isNotEmpty()) { @@ -128,7 +129,7 @@ if (modrinthId.isNotEmpty()) { projectId.set(modrinthId) versionName.set("${project.version} (Forge)") versionNumber.set("${project.version}-forge") - versionType.set("release") + versionType.set(if (isBeta) "beta" else "release") uploadFile.set(tasks["remapJar"]) gameVersions.set(listOf("1.19.4")) loaders.set(listOf("forge")) @@ -148,7 +149,7 @@ if (hasProperty("curseforge.token") && curseforgeId.isNotEmpty()) { }) id = curseforgeId - releaseType = "release" + releaseType = if (isBeta) "beta" else "release" addGameVersion("1.19.4") addGameVersion("Forge") addGameVersion("Java 17") |