FastAsyncWorldEdit/worldedit-core/build.gradle

130 Zeilen
4.1 KiB
Groovy

2019-07-17 11:43:14 +02:00
plugins {
id("java-library")
id("eclipse")
id("idea")
id("net.ltgt.apt") version "0.21" apply false
id "net.ltgt.apt-eclipse" version "0.21"
id "net.ltgt.apt-idea" version "0.21"
}
2019-04-03 00:21:02 +02:00
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-08-15 21:21:24 +02:00
it.resolutionStrategy { ResolutionStrategy rs ->
rs.force("it.unimi.dsi:fastutil:8.2.1")
}
2019-06-27 03:34:20 +02:00
}
2019-04-03 00:21:02 +02:00
dependencies {
2019-08-19 20:00:37 +02:00
compile project(":worldedit-libs:core")
compile "de.schlichtherle:truezip:6.8.3"
compile "rhino:js:1.7R2"
compile "org.yaml:snakeyaml:1.23"
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-08-15 21:21:24 +02:00
compile "it.unimi.dsi:fastutil:8.2.1"
2019-06-27 03:34:20 +02:00
2019-08-19 20:00:37 +02:00
compileOnly project(":worldedit-libs:core:ap")
annotationProcessor project(":worldedit-libs:core:ap")
2019-06-27 03:34:20 +02:00
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-08-19 20:00:37 +02:00
//compile "net.sf.trove4j:trove4j:3.0.3"
testCompile "org.mockito:mockito-core:1.9.0-rc1"
2019-04-03 00:21:02 +02:00
// Fawe depends
2019-08-19 20:00:37 +02:00
compileOnly "net.fabiozumbi12:redprotect:1.9.6"
2019-07-17 11:43:14 +02:00
compileOnly ("com.github.intellectualsites.plotsquared:PlotSquared-API:latest") {
2019-04-03 00:21:02 +02:00
transitive = false
}
2019-08-19 20:00:37 +02:00
compile "com.mojang:datafixerupper:1.0.20"
compile "com.github.luben:zstd-jni:1.1.1"
compile "co.aikar:fastutil-lite:1.0"
2019-08-15 21:35:45 +02:00
testImplementation ("org.junit.jupiter:junit-jupiter-api:5.5.0")
testImplementation ("org.junit.jupiter:junit-jupiter-params:5.5.0")
testImplementation ("org.mockito:mockito-core:3.0.0")
testImplementation ("org.mockito:mockito-junit-jupiter:3.0.0")
testRuntime ("org.junit.jupiter:junit-jupiter-engine:5.5.0")
2019-04-03 00:21:02 +02:00
}
2019-06-27 03:34:20 +02:00
tasks.withType(JavaCompile).configureEach {
2019-07-17 11:43:14 +02:00
dependsOn(":worldedit-libs:build")
2019-07-20 07:32:15 +02:00
it.options.compilerArgs << "-Xmaxerrs" << "10000"
2019-06-27 03:34:20 +02:00
it.options.compilerArgs.add("-Aarg.name.key.prefix=")
}
2019-04-03 00:21:02 +02:00
sourceSets {
main {
java {
2019-08-19 20:00:37 +02:00
srcDir "src/main/java"
srcDir "src/legacy/java"
2019-04-03 00:21:02 +02:00
}
resources {
2019-08-19 20:00:37 +02:00
srcDir "src/main/resources"
2019-04-03 00:21:02 +02:00
}
}
}
processResources {
2019-08-19 20:00:37 +02:00
from("src/main/resources") {
include "fawe.properties"
2019-04-03 00:21:02 +02:00
expand(
version: "${project.parent.version}",
2019-04-03 00:21:02 +02:00
name: project.parent.name,
commit: "${git.head().abbreviatedId}",
2019-07-17 07:43:18 +02:00
date: "${git.head().getDate().format("yy.MM.dd")}"
)
2019-04-03 00:21:02 +02:00
}
}
jar.archiveName="fawe-api-${project.parent.version}.jar"
2019-08-19 20:00:37 +02:00
jar.destinationDir = file "../mvn/com/boydti/fawe-api/" + project.parent.version
2019-07-17 11:43:14 +02:00
task createPom {
doLast {
pom {
project {
2019-08-19 20:00:37 +02:00
groupId "com.boydti"
artifactId "fawe-api"
2019-07-17 11:43:14 +02:00
version project.parent.version
}
2019-04-03 00:21:02 +02:00
}
2019-07-17 11:43:14 +02:00
.getEffectivePom()
.setDependencies(new ArrayList<>())
.writeTo("../mvn/com/boydti/fawe-api/${project.parent.version}/fawe-api-${project.parent.version}.pom")
pom {
project {
2019-08-19 20:00:37 +02:00
groupId "com.boydti"
artifactId "fawe-api"
version "latest"
2019-07-17 11:43:14 +02:00
}
2019-04-03 00:21:02 +02:00
}
2019-07-17 11:43:14 +02:00
.getEffectivePom()
.setDependencies(new ArrayList<>())
.writeTo("../mvn/com/boydti/fawe-api/latest/fawe-api-latest.pom")
2019-04-03 00:21:02 +02:00
}
}
task copyFiles {
doLast {
copy {
from "../mvn/com/boydti/fawe-api/${project.parent.version}/"
2019-08-19 20:00:37 +02:00
into "../mvn/com/boydti/fawe-api/latest/"
include("*.jar")
rename ("fawe-api-${project.parent.version}.jar", "fawe-api-latest.jar")
2019-04-03 00:21:02 +02:00
}
}
}
build.dependsOn(shadowJar)
build.finalizedBy(copyFiles)
copyFiles.dependsOn(createPom)