aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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