From aa20ecbce1426de57c352ef9e755c3015f8f561c Mon Sep 17 00:00:00 2001 From: makamys Date: Sun, 26 Jun 2022 16:24:40 +0200 Subject: Don't prefix tags with v It's not the cool thing to do anymore. Also it's more consistent this way. --- publish/build.gradle | 4 +++- publish/gradle.properties | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'publish') diff --git a/publish/build.gradle b/publish/build.gradle index 85425aa..776b3a4 100644 --- a/publish/build.gradle +++ b/publish/build.gradle @@ -20,6 +20,8 @@ def modrinthOK = project.hasProperty("modrinthToken") && project.hasProperty("ga def debugPublish = project.hasProperty("debugPublish") && project.debugPublish.toBoolean() +def useVPrefixForTag = project.hasProperty("useVPrefixForTag") && project.useVPrefixForTag.toBoolean() + task build {} task assemble {} @@ -29,7 +31,7 @@ if(githubOK){ // You get this from your user settings > developer settings > Personal Access Tokens owner project.githubOwner // default is the last part of your group. Eg group: "com.github.breadmoirai" => owner: "breadmoirai" repo project.githubRepo // by default this is set to your project name - tagName "v${buildVersion}" // by default this is set to "v${project.version}" + tagName (useVPrefixForTag ? "v" : "") + "${buildVersion}" // by default this is set to "${project.version}" targetCommitish "master" // by default this is set to "master" releaseName "${project.releaseName} ${buildVersion}" body changeLog // by default this is empty diff --git a/publish/gradle.properties b/publish/gradle.properties index 959fd68..2558da5 100644 --- a/publish/gradle.properties +++ b/publish/gradle.properties @@ -7,4 +7,5 @@ modrinthID= releaseName=Neodymium versionedProjectDirectories=false -updateJsonFullVersionFormat=false \ No newline at end of file +updateJsonFullVersionFormat=false +useVPrefixForTag=false -- cgit