2018-08-12 16:03:07 +02:00
|
|
|
print new File('splash.txt').text
|
2014-04-06 04:33:05 +02:00
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2014-11-14 20:27:39 +01:00
|
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
2014-05-15 20:41:26 +02:00
|
|
|
jcenter()
|
2014-04-06 04:33:05 +02:00
|
|
|
}
|
|
|
|
|
2015-02-12 22:30:49 +01:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
2018-08-06 11:08:15 +02:00
|
|
|
force 'com.google.guava:guava:21.0'
|
2017-10-20 02:06:01 +02:00
|
|
|
force 'org.ow2.asm:asm:6.0_BETA'
|
2015-02-12 22:30:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-06 04:33:05 +02:00
|
|
|
dependencies {
|
2016-02-23 02:40:18 +01:00
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
|
2016-08-06 11:29:56 +02:00
|
|
|
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.3.0'
|
|
|
|
classpath 'org.ajoberstar:gradle-git:1.5.1'
|
2014-04-06 04:33:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-06 11:29:56 +02:00
|
|
|
allprojects {
|
|
|
|
group = 'com.sk89q.worldedit'
|
2018-01-03 08:06:58 +01:00
|
|
|
version = '7.0.0-SNAPSHOT'
|
2016-08-06 11:29:56 +02:00
|
|
|
}
|
|
|
|
|
2018-08-12 16:03:07 +02:00
|
|
|
apply plugin: 'java'
|
|
|
|
clean { delete "target" }
|
2014-04-06 04:33:05 +02:00
|
|
|
|
2018-08-12 16:03:07 +02:00
|
|
|
group = 'com.boydti.fawe'
|
|
|
|
def revision = ""
|
|
|
|
def buildNumber = ""
|
|
|
|
def date = ""
|
|
|
|
ext {
|
2014-11-14 20:27:39 +01:00
|
|
|
try {
|
2018-08-12 16:03:07 +02:00
|
|
|
git = org.ajoberstar.grgit.Grgit.open(file(".git"))
|
|
|
|
date = git.head().date.format("yy.MM.dd")
|
|
|
|
revision = "-${git.head().abbreviatedId}"
|
|
|
|
index = 0; // Offset to match CI
|
2018-08-12 19:38:20 +02:00
|
|
|
for (; parents != null && !parents.isEmpty(); index++) {
|
|
|
|
commit = git.getResolve().toCommit(parents.get(0));
|
|
|
|
parents = commit.getParentIds()
|
|
|
|
}
|
2018-08-12 16:03:07 +02:00
|
|
|
buildNumber = "-${index}"
|
|
|
|
} catch (Throwable ignore) {
|
|
|
|
revision = "unknown";
|
2014-11-14 20:27:39 +01:00
|
|
|
}
|
|
|
|
}
|
2016-06-18 09:32:17 +02:00
|
|
|
|
2018-08-12 16:03:07 +02:00
|
|
|
version = date + revision + buildNumber
|
|
|
|
if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion
|
|
|
|
version = "unknown";
|
2016-06-18 09:32:17 +02:00
|
|
|
}
|
2018-08-12 16:03:07 +02:00
|
|
|
description = """FastAsyncWorldEdit"""
|
2016-06-18 09:32:17 +02:00
|
|
|
|
2014-11-14 20:27:39 +01:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
2014-04-06 04:33:05 +02:00
|
|
|
|
2018-08-12 16:03:07 +02:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
ext.internalVersion = version
|
2014-04-06 04:33:05 +02:00
|
|
|
|
2018-06-16 08:36:55 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2014-04-06 04:33:05 +02:00
|
|
|
|
2014-11-14 20:27:39 +01:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url "http://repo.bukkit.org/content/groups/public" }
|
|
|
|
maven { url "http://maven.sk89q.com/repo/" }
|
|
|
|
maven { url "http://repo.maven.apache.org/maven2" }
|
2018-08-12 16:03:07 +02:00
|
|
|
// Fawe
|
|
|
|
maven {url "https://mvnrepository.com/artifact/"}
|
|
|
|
maven {url "http://repo.dmulloy2.net/content/groups/public/"}
|
|
|
|
maven {url "https://repo.destroystokyo.com/repository/maven-public//"}
|
|
|
|
maven {url "http://ci.emc.gs/nexus/content/groups/aikar/" }
|
|
|
|
maven {url "http://ci.athion.net/job/PlotSquared/ws/mvn/"}
|
|
|
|
maven {url "http://empcraft.com/maven2"}
|
|
|
|
maven {url "https://hub.spigotmc.org/nexus/content/groups/public/"}
|
|
|
|
maven {url "http://ci.frostcast.net/plugin/repository/everything"}
|
|
|
|
maven {url "http://maven.sk89q.com/artifactory/repo"}
|
|
|
|
maven {url "http://repo.spongepowered.org/maven"}
|
|
|
|
maven {url "https://repo.inventivetalent.org/content/groups/public/"}
|
|
|
|
maven {url "http://dl.bintray.com/tastybento/maven-repo"}
|
2014-04-06 04:33:05 +02:00
|
|
|
}
|
|
|
|
|
2014-11-14 20:27:39 +01:00
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc.destinationDir
|
2014-05-15 20:41:26 +02:00
|
|
|
}
|
|
|
|
|
2014-11-14 20:27:39 +01:00
|
|
|
artifacts {
|
|
|
|
archives jar
|
|
|
|
}
|
2014-05-15 20:41:26 +02:00
|
|
|
|
2016-02-02 21:12:54 +01:00
|
|
|
if (!(name.equals('worldedit-forge') || name.equals('worldedit-sponge'))) {
|
2016-01-13 00:32:58 +01:00
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
|
|
|
}
|
|
|
|
build.dependsOn(sourcesJar)
|
|
|
|
}
|
|
|
|
|
2014-11-14 20:27:39 +01:00
|
|
|
shadowJar {
|
|
|
|
classifier 'dist'
|
|
|
|
dependencies {
|
|
|
|
include(dependency('com.sk89q:jchronic:0.2.4a'))
|
|
|
|
include(dependency('com.thoughtworks.paranamer:paranamer:2.6'))
|
|
|
|
include(dependency('com.sk89q.lib:jlibnoise:1.0.0'))
|
2018-08-12 16:03:07 +02:00
|
|
|
include(dependency('com.github.luben:zstd-jni:1.1.1'))
|
|
|
|
include(dependency('co.aikar:fastutil-lite:1.0'))
|
2014-11-14 20:27:39 +01:00
|
|
|
}
|
|
|
|
exclude 'GradleStart**'
|
|
|
|
exclude '.cache'
|
|
|
|
exclude 'LICENSE*'
|
|
|
|
}
|
2015-01-11 02:09:29 +01:00
|
|
|
}
|