Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
Don't use local offset when compiling locally
Dieser Commit ist enthalten in:
Ursprung
b59d0e9843
Commit
fe1cb649c8
@ -15,42 +15,26 @@ logger.lifecycle("""
|
|||||||
*******************************************
|
*******************************************
|
||||||
""")
|
""")
|
||||||
|
|
||||||
//TODO FIX THIS WHEN I FEEL LIKE IT
|
|
||||||
var rootVersion by extra("1.16")
|
var rootVersion by extra("1.16")
|
||||||
var revision: String by extra("")
|
var revision: String by extra("")
|
||||||
var buildNumber by extra("")
|
var buildNumber by extra("")
|
||||||
var date: String by extra("")
|
var date: String by extra("")
|
||||||
ext {
|
ext {
|
||||||
val git: Grgit = Grgit.open {
|
val git: Grgit = Grgit.open {
|
||||||
dir = File("$rootDir/.git");
|
dir = File("$rootDir/.git")
|
||||||
}
|
}
|
||||||
date = git.head().dateTime.format(DateTimeFormatter.ofPattern("yy.MM.dd"));
|
date = git.head().dateTime.format(DateTimeFormatter.ofPattern("yy.MM.dd"))
|
||||||
revision = "-${git.head().abbreviatedId}";
|
revision = "-${git.head().abbreviatedId}"
|
||||||
var parents: MutableList<String>? = git.head().parentIds;
|
val commit: String? = Grgit.open().head().abbreviatedId
|
||||||
if (project.hasProperty("buildnumber")) {
|
buildNumber = if (project.hasProperty("buildnumber")) {
|
||||||
buildNumber = project.properties["buildnumber"] as String;
|
project.properties["buildnumber"] as String
|
||||||
} else {
|
} else {
|
||||||
var index = -2109; // Offset to match CI
|
commit.toString()
|
||||||
while (parents != null && parents.isNotEmpty()) {
|
|
||||||
parents = git.resolve.toCommit(parents[0]).parentIds
|
|
||||||
index++;
|
|
||||||
}
|
|
||||||
buildNumber = index.toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
|
||||||
gradle.projectsEvaluated {
|
|
||||||
tasks.withType(JavaCompile::class) {
|
|
||||||
options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000"))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
version = String.format("%s-%s", rootVersion, buildNumber)
|
version = String.format("%s-%s", rootVersion, buildNumber)
|
||||||
|
|
||||||
applyCommonConfiguration()
|
|
||||||
|
|
||||||
if (!project.hasProperty("gitCommitHash")) {
|
if (!project.hasProperty("gitCommitHash")) {
|
||||||
apply(plugin = "org.ajoberstar.grgit")
|
apply(plugin = "org.ajoberstar.grgit")
|
||||||
ext["gitCommitHash"] = try {
|
ext["gitCommitHash"] = try {
|
||||||
@ -61,3 +45,13 @@ if (!project.hasProperty("gitCommitHash")) {
|
|||||||
"no.git.id"
|
"no.git.id"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
gradle.projectsEvaluated {
|
||||||
|
tasks.withType(JavaCompile::class) {
|
||||||
|
options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
applyCommonConfiguration()
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
group=com.sk89q.worldedit
|
group=com.sk89q.worldedit
|
||||||
version=7.2.0-SNAPSHOT
|
|
||||||
|
|
||||||
org.gradle.jvmargs=-Xmx1512M
|
org.gradle.jvmargs=-Xmx1512M
|
||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren