Change output jar name

This commit is contained in:
Jesse Boyd 2018-08-13 03:38:20 +10:00
parent 7fb3899bb7
commit 74ec39d67b
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
3 changed files with 6 additions and 2 deletions

View File

@ -39,6 +39,10 @@ ext {
date = git.head().date.format("yy.MM.dd") date = git.head().date.format("yy.MM.dd")
revision = "-${git.head().abbreviatedId}" revision = "-${git.head().abbreviatedId}"
index = 0; // Offset to match CI index = 0; // Offset to match CI
for (; parents != null && !parents.isEmpty(); index++) {
commit = git.getResolve().toCommit(parents.get(0));
parents = commit.getParentIds()
}
buildNumber = "-${index}" buildNumber = "-${index}"
} catch (Throwable ignore) { } catch (Throwable ignore) {
revision = "unknown"; revision = "unknown";

View File

@ -1,3 +1,3 @@
rootProject.name = 'worldedit' rootProject.name = 'FastAsyncWorldEdit'
include 'worldedit-core', 'worldedit-bukkit' include 'worldedit-core', 'worldedit-bukkit'

View File

@ -54,7 +54,7 @@ shadowJar {
dependencies { dependencies {
include(dependency(':worldedit-core')) include(dependency(':worldedit-core'))
} }
archiveName = "${parent.name}-${project.name}-${parent.version}.jar" archiveName = "${parent.name}-${project.name.replaceAll("worldedit-", "")}-${parent.version}.jar"
destinationDir = file '../target' destinationDir = file '../target'
} }