From b0c11d11c644b4184ea0a4c7a05caa50b744d32f Mon Sep 17 00:00:00 2001 From: 33 Date: Thu, 17 Mar 2022 11:07:25 +0800 Subject: [PATCH] Fix curseforge and modrinth release --- .gitignore | 3 +++ BuildScripts/curseforge.gradle | 2 +- BuildScripts/modrinth.gradle | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8879745..3083ba9 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ run/ .idea/ *.iml out/ + +#mac OS +.DS_Store diff --git a/BuildScripts/curseforge.gradle b/BuildScripts/curseforge.gradle index f2b7094..8b597e8 100644 --- a/BuildScripts/curseforge.gradle +++ b/BuildScripts/curseforge.gradle @@ -36,7 +36,7 @@ static void provideCurseForge0(Project proj) { changelogType = "text" changelog = System.getenv("GIT_COMMIT_DESC") ?: "" displayName = "${proj.archivesBaseName}-${proj.ext.getShortVersion()}" - releaseType = proj.ext.isSnapshot ? "beta" : "release" + releaseType = proj.ext.isSnapshot() ? "beta" : "release" it } additionalArtifacts = [] diff --git a/BuildScripts/modrinth.gradle b/BuildScripts/modrinth.gradle index 2dcc3e0..e97a7e9 100644 --- a/BuildScripts/modrinth.gradle +++ b/BuildScripts/modrinth.gradle @@ -26,7 +26,7 @@ static void provideModrinth0(Project proj) { versionName = "${proj.archivesBaseName}-${proj.ext.getShortVersion()}" changelog = System.getenv("GIT_COMMIT_DESC") ?: "" uploadFile = proj.tasks.jar - versionType = proj.ext.isSnapshot ? VersionType.BETA : VersionType.RELEASE + versionType = proj.ext.isSnapshot() ? VersionType.BETA : VersionType.RELEASE failSilently = true detectLoaders = false