mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-09-27 14:52:59 +02:00
Updated to show dev in file name if not tagged
This commit is contained in:
parent
425093d887
commit
afe4e41b14
@ -26,13 +26,13 @@ apply plugin: 'maven-publish'
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
group = 'com.sekwah.advancedportals'
|
|
||||||
version = getPluginData("version") + '-snapshot'
|
|
||||||
|
|
||||||
def branch = System.getenv("GITHUB_REF");
|
def branch = System.getenv("GITHUB_REF");
|
||||||
def sha = System.getenv("GITHUB_SHA");
|
def sha = System.getenv("GITHUB_SHA");
|
||||||
def isDevBranch = !(branch && (branch.startsWith("refs/heads/release/") || branch.startsWith("refs/tags/")));
|
def isDevBranch = !(branch && (branch.startsWith("refs/heads/release/") || branch.startsWith("refs/tags/")));
|
||||||
|
|
||||||
|
group = 'com.sekwah.advancedportals'
|
||||||
|
version = getPluginData("version") + '-snapshot' + isDevBranch ? '-dev' : ''
|
||||||
|
|
||||||
description = ""
|
description = ""
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
Loading…
Reference in New Issue
Block a user