2016-04-02 06:06:24 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
|
2016-05-14 15:38:07 +02:00
|
|
|
classpath 'org.ajoberstar:grgit:1.7.0'
|
2016-08-22 06:43:59 +02:00
|
|
|
// classpath 'it.unimi.dsi:fastutil:7.0.12'
|
2016-04-02 06:06:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-30 04:49:23 +02:00
|
|
|
apply plugin: 'java'
|
|
|
|
clean { delete "target" }
|
|
|
|
|
2016-04-02 06:06:24 +02:00
|
|
|
group = 'com.boydti.fawe'
|
2016-08-14 02:26:51 +02:00
|
|
|
|
2016-05-13 10:19:04 +02:00
|
|
|
def revision = ""
|
2016-08-14 02:26:51 +02:00
|
|
|
def buildNumber = ""
|
|
|
|
final def date = new Date().format("yy.MM.dd")
|
2016-05-13 10:19:04 +02:00
|
|
|
ext {
|
2016-05-14 15:38:07 +02:00
|
|
|
git = org.ajoberstar.grgit.Grgit.open(file(".git"))
|
2016-05-13 10:19:04 +02:00
|
|
|
revision = "-${git.head().abbreviatedId}"
|
2016-08-14 02:26:51 +02:00
|
|
|
parents = git.head().parentIds;
|
2016-09-15 11:49:29 +02:00
|
|
|
index = -45; // Offset to mach CI
|
2016-08-14 02:26:51 +02:00
|
|
|
for (;parents != null && !parents.isEmpty();index++) {
|
|
|
|
commit = git.getResolve().toCommit(parents.get(0));
|
|
|
|
parents = commit.getParentIds();
|
|
|
|
}
|
|
|
|
buildNumber = "-${index}"
|
2016-05-13 10:19:04 +02:00
|
|
|
}
|
2016-08-07 01:55:59 +02:00
|
|
|
|
2016-08-14 02:26:51 +02:00
|
|
|
version = date + revision + buildNumber
|
2016-08-16 10:49:56 +02:00
|
|
|
if ( project.hasProperty("lzNoVersion") ) { // gradle build -PlzNoVersion
|
2016-08-22 14:18:59 +02:00
|
|
|
version = "unknown";
|
2016-08-16 10:49:56 +02:00
|
|
|
}
|
2016-04-02 06:06:24 +02:00
|
|
|
description = """FastAsyncWorldEdit"""
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
|
2016-06-10 06:08:37 +02:00
|
|
|
sourceCompatibility = 1.7
|
|
|
|
targetCompatibility = 1.7
|
|
|
|
|
2016-04-02 06:06:24 +02:00
|
|
|
dependencies {
|
2016-06-27 15:56:11 +02:00
|
|
|
compile(group: 'com.sk89q.worldedit', name: 'worldedit-core', version:'6.1.3-SNAPSHOT') {
|
2016-04-02 06:06:24 +02:00
|
|
|
exclude(module: 'bukkit-classloader-check')
|
|
|
|
}
|
|
|
|
compile 'com.sk89q:worldguard:6.0.0-SNAPSHOT'
|
2016-06-16 12:25:21 +02:00
|
|
|
compile 'com.plotsquared:PlotSquared:3.4.1-SNAPSHOT'
|
2016-07-12 09:54:00 +02:00
|
|
|
compile 'org.primesoft:BlocksHub:2.0'
|
2016-04-02 06:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2016-09-04 17:34:38 +02:00
|
|
|
maven {url "http://ci.regularbox.com/plugin/repository/everything/"}
|
2016-04-02 06:06:24 +02:00
|
|
|
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/"}
|
2016-08-15 00:08:21 +02:00
|
|
|
maven {url "http://nexus.hc.to/content/repositories/pub_releases"}
|
2016-04-02 06:06:24 +02:00
|
|
|
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"}
|
|
|
|
}
|
2016-08-15 00:08:21 +02:00
|
|
|
}
|