Create pom

This commit is contained in:
Jesse Boyd
2018-08-14 20:41:52 +10:00
parent 131fd39f63
commit ced4fed9db
4 changed files with 77 additions and 7 deletions

View File

@ -39,19 +39,20 @@ ext {
date = git.head().date.format("yy.MM.dd")
revision = "-${git.head().abbreviatedId}"
index = 0; // Offset to match CI
parents = git.head().parentIds;
for (; parents != null && !parents.isEmpty(); index++) {
commit = git.getResolve().toCommit(parents.get(0));
parents = commit.getParentIds()
}
buildNumber = "-${index}"
} catch (Throwable ignore) {
revision = "unknown";
revision = "-unknown"
}
}
version = date + revision + buildNumber
if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion
version = "unknown";
version = "unknown"
}
description = """FastAsyncWorldEdit"""
@ -67,6 +68,7 @@ subprojects {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
version = rootProject.version
repositories {
mavenCentral()