aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-26 16:24:40 +0200
committermakamys <makamys@outlook.com>2022-06-26 16:31:52 +0200
commitaa20ecbce1426de57c352ef9e755c3015f8f561c (patch)
tree442d446b2a69ae34e1c192c5dc299379ca088c56
parentdd391c5308483f6952bcb8406088166286543752 (diff)
downloadNeodymium-aa20ecbce1426de57c352ef9e755c3015f8f561c.tar.gz
Neodymium-aa20ecbce1426de57c352ef9e755c3015f8f561c.tar.bz2
Neodymium-aa20ecbce1426de57c352ef9e755c3015f8f561c.zip
Don't prefix tags with v
It's not the cool thing to do anymore. Also it's more consistent this way.
-rw-r--r--publish/build.gradle4
-rw-r--r--publish/gradle.properties3
2 files changed, 5 insertions, 2 deletions
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