mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-16 15:46:16 +01:00
9bf2d2b0c3
Update to PS 3.4.1 - Added various optimizations for PlotSquared - Support full schematic exporting (includes NBT now) Added compression level option: 0 is no compression 1-9 = varying levels of compression at the expense of CPU 3 = Good fast compression 5 = Good high compression 8 = Lots of compression (going further has diminishing returns) Add EditSession builder (for extra control over optimizations) Added compression option to FaweChangeSet constructor Added FAWE format (used for history / clipboard on disk) Various minor optimizations TODO bug fixes
95 lines
2.2 KiB
Groovy
95 lines
2.2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
maven {
|
|
name = "forge"
|
|
url = "http://files.minecraftforge.net/maven"
|
|
}
|
|
maven {
|
|
name = 'minecrell'
|
|
url = 'http://repo.minecrell.net/releases'
|
|
}
|
|
maven {url = "https://oss.sonatype.org/content/repositories/snapshots/"}
|
|
maven {url = "http://repo.minecrell.net/snapshots"}
|
|
}
|
|
dependencies {
|
|
classpath 'net.minecrell:VanillaGradle:2.0.3_1'
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'net.minecrell.vanilla.server.library'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
dependencies {
|
|
compile project(':core')
|
|
compile 'org.spongepowered:spongeapi:4.+'
|
|
compile 'org.mcstats.sponge:metrics:R8-SNAPSHOT'
|
|
compile 'com.sk89q.worldedit:worldedit-forge-mc1.8.9:6.1.1'
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
repositories {
|
|
maven {
|
|
name = 'forge'
|
|
url = 'http://files.minecraftforge.net/maven'
|
|
}
|
|
maven {
|
|
name = "Sponge"
|
|
url = "https://repo.spongepowered.org/maven"
|
|
}
|
|
maven {
|
|
name = "Sponge Metrics"
|
|
url = "http://repo.mcstats.org/content/repositories/releases/"
|
|
}
|
|
}
|
|
minecraft {
|
|
version = "1.8.9"
|
|
mappings = "stable_22"
|
|
runDir = 'run'
|
|
}
|
|
|
|
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraft.version}"
|
|
|
|
processResources {
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
expand 'version': project.version,
|
|
'mcVersion': project.minecraft.version
|
|
exclude 'mcmod.info'
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
relocate 'org.yaml.snakeyaml', 'com.boydti.fawe.yaml'
|
|
dependencies {
|
|
include(dependency(':core'))
|
|
include(dependency('org.yaml:snakeyaml:1.16'))
|
|
}
|
|
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
|
destinationDir = file '../target'
|
|
}
|
|
shadowJar.doLast {
|
|
task ->
|
|
ant.checksum file: task.archivePath
|
|
}
|
|
|
|
|
|
reobf {
|
|
shadowJar {
|
|
mappingType = 'SEARGE'
|
|
}
|
|
}
|
|
|
|
task deobfJar(type: Jar) {
|
|
from sourceSets.main.output
|
|
classifier = 'dev'
|
|
}
|
|
|
|
artifacts {
|
|
archives deobfJar
|
|
}
|
|
|
|
build.dependsOn(shadowJar)
|