mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-02 17:10:03 +01:00
2cb1485553
Fixes #305 //sel extend bug Translate a few messages Add option `store-redo: true`, disabling will result in smaller history but cannot use redo Add option `small-edits: false` will reduce history by assuming edits < 4096x256x4096 Change FaweStreamChangeSet to use new settings, but be backwards compatible (uses mode byte) Add auto generated semantic version (may not be accurate) Add recursive brush Optimize undo/redo using mutable change objects Tweak several classes to implement HasFaweQueue Fix wrong cancel message for entity/biome changes Optimized offset mask Fixed masks not being reset after edit Added interface ResettableMask used to reset masks after being used for an EditSession Added MaskTraverser for traversing and resetting inherited masks after use Added angle mask \#,# Added id,data,combined mask #id #data #iddata (Must match starting block id/data) Added x,y,z axis mask #xaxis #yaxis #zaxis Add mode 4 FAWE format (short location prefix + no combined from bytes) Fix `/frb` command not respecting regions Tweak permission for `/frb` -> worldedit.history.rollback Translated ToolUtil commands
91 lines
2.9 KiB
Groovy
91 lines
2.9 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
|
|
classpath 'org.ajoberstar:grgit:1.7.0'
|
|
// classpath 'it.unimi.dsi:fastutil:7.0.12'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
clean { delete "target" }
|
|
|
|
group = 'com.boydti.fawe'
|
|
|
|
def revision = ""
|
|
def buildNumber = ""
|
|
def semver = ""
|
|
def date = ""
|
|
ext {
|
|
git = org.ajoberstar.grgit.Grgit.open(file(".git"))
|
|
date = git.head().date.format("yy.MM.dd")
|
|
revision = "-${git.head().abbreviatedId}"
|
|
parents = git.head().parentIds;
|
|
index = -45; // Offset to mach CI
|
|
int major, minor, patch;
|
|
major = minor = patch = 0;
|
|
for (;parents != null && !parents.isEmpty();index++) {
|
|
int majorCount, minorCount, patchCount;
|
|
patchCount = 1;
|
|
commit = git.getResolve().toCommit(parents.get(0));
|
|
for (String line : commit.fullMessage.tokenize("\n")) {
|
|
switch (line.replaceAll("- ", "").split(" ")[0].toLowerCase()) {
|
|
case "minor":
|
|
case "added":
|
|
case "add":
|
|
case "change":
|
|
case "changed":
|
|
case "changes":
|
|
if (majorCount == 0) {minorCount = 1; patch = patchCount = 0;}
|
|
break;
|
|
case "refactor":
|
|
case "remove":
|
|
case "major":
|
|
patch = minor = minorCount = patchCount = 0;
|
|
majorCount = 1;
|
|
break;
|
|
}
|
|
}
|
|
major += majorCount;
|
|
minor += minorCount;
|
|
patch += patchCount;
|
|
parents = commit.getParentIds()
|
|
}
|
|
buildNumber = "-${index}"
|
|
semver = "-${major}.${minor}.${patch}"
|
|
}
|
|
|
|
version = date + revision + buildNumber + semver
|
|
if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion
|
|
version = "unknown";
|
|
}
|
|
description = """FastAsyncWorldEdit"""
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
|
|
sourceCompatibility = 1.7
|
|
targetCompatibility = 1.7
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {url "http://ci.regularbox.com/plugin/repository/everything/"}
|
|
maven {url "http://empcraft.com/maven2"}
|
|
maven {url "http://repo.mcstats.org/content/repositories/public"}
|
|
maven {url "https://hub.spigotmc.org/nexus/content/groups/public/"}
|
|
maven {url "http://maven.sk89q.com/repo/"}
|
|
maven {url "http://nexus.hc.to/content/repositories/pub_releases"}
|
|
maven {url "http://repo.maven.apache.org/maven2"}
|
|
maven {url "http://ci.frostcast.net/plugin/repository/everything"}
|
|
maven {url "http://maven.sk89q.com/artifactory/repo/"}
|
|
maven {url "http://repo.spongepowered.org/maven"}
|
|
}
|
|
}
|