2019-06-27 03:34:20 +02:00
|
|
|
apply plugin: 'java-library'
|
2019-04-03 00:21:02 +02:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
repositories {
|
|
|
|
maven {url "http://ci.athion.net/job/PlotSquared-Breaking/ws/mvn/"}
|
|
|
|
}
|
2019-06-27 03:34:20 +02:00
|
|
|
|
|
|
|
configurations.all { Configuration it ->
|
|
|
|
it.resolutionStrategy { ResolutionStrategy rs ->
|
|
|
|
rs.force("com.google.guava:guava:21.0")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-03 00:21:02 +02:00
|
|
|
dependencies {
|
2019-06-27 03:34:20 +02:00
|
|
|
compile project(':worldedit-libs:core')
|
2019-04-03 00:21:02 +02:00
|
|
|
compile 'de.schlichtherle:truezip:6.8.3'
|
|
|
|
compile 'rhino:js:1.7R2'
|
2019-06-27 03:34:20 +02:00
|
|
|
compile 'org.yaml:snakeyaml:1.23'
|
2019-04-03 00:21:02 +02:00
|
|
|
compile 'com.google.guava:guava:21.0'
|
|
|
|
compile 'com.google.code.findbugs:jsr305:1.3.9'
|
|
|
|
compile 'com.thoughtworks.paranamer:paranamer:2.6'
|
|
|
|
compile 'com.google.code.gson:gson:2.8.0'
|
|
|
|
compile 'com.googlecode.json-simple:json-simple:1.1.1'
|
|
|
|
compile 'org.slf4j:slf4j-api:1.7.26'
|
2019-06-27 03:34:20 +02:00
|
|
|
|
|
|
|
compileOnly project(':worldedit-libs:core:ap')
|
|
|
|
annotationProcessor project(':worldedit-libs:core:ap')
|
|
|
|
annotationProcessor "com.google.guava:guava:21.0"
|
|
|
|
def avVersion = "1.6.5"
|
|
|
|
compileOnly "com.google.auto.value:auto-value-annotations:$avVersion"
|
|
|
|
annotationProcessor "com.google.auto.value:auto-value:$avVersion"
|
2019-04-03 00:21:02 +02:00
|
|
|
//compile 'net.sf.trove4j:trove4j:3.0.3'
|
|
|
|
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
|
|
|
|
|
|
|
// Fawe depends
|
|
|
|
compile 'net.fabiozumbi12:redprotect:1.9.6'
|
|
|
|
compile ("com.github.intellectualsites.plotsquared:PlotSquared-API:latest") {
|
|
|
|
transitive = false
|
|
|
|
}
|
2019-04-18 02:22:54 +02:00
|
|
|
compile 'com.mojang:datafixerupper:1.0.20'
|
2019-04-03 00:21:02 +02:00
|
|
|
compile 'com.github.luben:zstd-jni:1.1.1'
|
|
|
|
compile 'co.aikar:fastutil-lite:1.0'
|
|
|
|
}
|
|
|
|
|
2019-06-27 03:34:20 +02:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
it.options.compilerArgs.add("-Aarg.name.key.prefix=")
|
|
|
|
}
|
|
|
|
|
2019-04-03 00:21:02 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDir 'src/main/java'
|
|
|
|
srcDir 'src/legacy/java'
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir 'src/main/resources'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from('src/main/resources') {
|
|
|
|
include 'fawe.properties'
|
|
|
|
expand(
|
2019-04-17 00:35:39 +02:00
|
|
|
version: "${project.parent.version}",
|
2019-04-03 00:21:02 +02:00
|
|
|
name: project.parent.name,
|
2019-04-17 00:35:39 +02:00
|
|
|
commit: "${git.head().abbreviatedId}",
|
|
|
|
date: "${git.head().getDate().format("yy.MM.dd")}",
|
2019-04-03 00:21:02 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar.archiveName="fawe-api-${project.parent.version}.jar"
|
|
|
|
jar.destinationDir = file '../mvn/com/boydti/fawe-api/' + project.parent.version
|
|
|
|
task createPom << {
|
|
|
|
pom {
|
|
|
|
project {
|
|
|
|
groupId 'com.boydti'
|
|
|
|
artifactId 'fawe-api'
|
|
|
|
version project.parent.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.getEffectivePom()
|
|
|
|
.setDependencies(new ArrayList<>())
|
|
|
|
.writeTo("../mvn/com/boydti/fawe-api/${project.parent.version}/fawe-api-${project.parent.version}.pom")
|
|
|
|
pom {
|
|
|
|
project {
|
|
|
|
groupId 'com.boydti'
|
|
|
|
artifactId 'fawe-api'
|
|
|
|
version 'latest'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.getEffectivePom()
|
|
|
|
.setDependencies(new ArrayList<>())
|
|
|
|
.writeTo("../mvn/com/boydti/fawe-api/latest/fawe-api-latest.pom")
|
|
|
|
}
|
|
|
|
task copyFiles {
|
|
|
|
doLast {
|
|
|
|
copy {
|
|
|
|
from "../mvn/com/boydti/fawe-api/${project.parent.version}/"
|
|
|
|
into '../mvn/com/boydti/fawe-api/latest/'
|
|
|
|
include('*.jar')
|
|
|
|
rename ("fawe-api-${project.parent.version}.jar", 'fawe-api-latest.jar')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn(shadowJar)
|
|
|
|
build.finalizedBy(copyFiles)
|
|
|
|
copyFiles.dependsOn(createPom)
|