Create pom
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user