2017-03-26 20:14:28 +02:00
|
|
|
repositories {
|
|
|
|
flatDir {dirs 'lib'}
|
2019-03-21 19:41:41 +01:00
|
|
|
maven {url "http://ci.athion.net/job/PlotSquared-Legacy/ws/mvn/"}
|
2017-03-26 20:14:28 +02:00
|
|
|
}
|
2016-04-02 06:06:24 +02:00
|
|
|
dependencies {
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
compile 'org.yaml:snakeyaml:1.16'
|
|
|
|
compile 'com.google.code.gson:gson:2.2.4'
|
2016-04-26 21:51:22 +02:00
|
|
|
compile 'net.fabiozumbi12:redprotect:1.9.6'
|
2017-07-28 07:12:41 +02:00
|
|
|
compile group: "com.plotsquared", name: "plotsquared-api", version: "latest"
|
2016-09-20 10:46:49 +02:00
|
|
|
compile 'org.primesoft:BlocksHub:2.0'
|
2016-12-12 07:41:32 +01:00
|
|
|
compile 'com.github.luben:zstd-jni:1.1.1'
|
2017-03-26 20:14:28 +02:00
|
|
|
// compile 'org.javassist:javassist:3.22.0-CR1'
|
2017-03-26 21:16:27 +02:00
|
|
|
compile 'co.aikar:fastutil-lite:1.0'
|
2016-09-20 10:46:49 +02:00
|
|
|
compile(group: 'com.sk89q.worldedit', name: 'worldedit-core', version:'6.1.3-SNAPSHOT') {
|
|
|
|
exclude(module: 'bukkit-classloader-check')
|
|
|
|
}
|
2016-04-02 06:06:24 +02:00
|
|
|
}
|
|
|
|
|
2016-08-14 02:26:51 +02:00
|
|
|
processResources {
|
|
|
|
from('src/main/resources') {
|
|
|
|
include 'fawe.properties'
|
|
|
|
expand(
|
|
|
|
version: "${project.parent.version}",
|
|
|
|
name: project.parent.name,
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-28 09:57:47 +02:00
|
|
|
jar.archiveName="fawe-api-${project.parent.version}.jar"
|
2016-08-28 15:06:15 +02:00
|
|
|
jar.destinationDir = file '../mvn/com/boydti/fawe-api/' + project.parent.version
|
2016-08-28 09:57:47 +02:00
|
|
|
task createPom << {
|
|
|
|
pom {
|
|
|
|
project {
|
|
|
|
groupId 'com.boydti'
|
|
|
|
artifactId 'fawe-api'
|
|
|
|
version project.parent.version
|
|
|
|
}
|
2017-06-09 09:08:57 +02:00
|
|
|
}
|
|
|
|
.getEffectivePom()
|
|
|
|
.setDependencies(new ArrayList<>())
|
|
|
|
.writeTo("../mvn/com/boydti/fawe-api/${project.parent.version}/fawe-api-${project.parent.version}.pom")
|
2016-10-01 08:01:34 +02:00
|
|
|
pom {
|
|
|
|
project {
|
|
|
|
groupId 'com.boydti'
|
|
|
|
artifactId 'fawe-api'
|
|
|
|
version 'latest'
|
|
|
|
}
|
2017-06-09 09:08:57 +02:00
|
|
|
}
|
|
|
|
.getEffectivePom()
|
|
|
|
.setDependencies(new ArrayList<>())
|
|
|
|
.writeTo("../mvn/com/boydti/fawe-api/latest/fawe-api-latest.pom")
|
2016-08-28 09:57:47 +02:00
|
|
|
}
|
|
|
|
|
2016-09-25 18:42:23 +02:00
|
|
|
task copyFiles {
|
|
|
|
doLast {
|
|
|
|
copy {
|
|
|
|
from "../mvn/com/boydti/fawe-api/${project.parent.version}/"
|
|
|
|
into '../mvn/com/boydti/fawe-api/latest/'
|
2016-10-01 08:01:34 +02:00
|
|
|
include('*.jar')
|
2016-09-25 18:42:23 +02:00
|
|
|
rename ("fawe-api-${project.parent.version}.jar", 'fawe-api-latest.jar')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build.finalizedBy(copyFiles)
|
|
|
|
copyFiles.dependsOn(createPom)
|