Updated to show dev in file name if not tagged

This commit is contained in:
Sekwah 2021-04-05 15:07:56 +01:00
parent 425093d887
commit afe4e41b14
No known key found for this signature in database
GPG Key ID: C3BE2E6C861A461A
1 changed files with 3 additions and 3 deletions

View File

@ -26,13 +26,13 @@ apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.sekwah.advancedportals'
version = getPluginData("version") + '-snapshot'
def branch = System.getenv("GITHUB_REF");
def sha = System.getenv("GITHUB_SHA");
def isDevBranch = !(branch && (branch.startsWith("refs/heads/release/") || branch.startsWith("refs/tags/")));
group = 'com.sekwah.advancedportals'
version = getPluginData("version") + '-snapshot' + isDevBranch ? '-dev' : ''
description = ""
sourceCompatibility = 1.8