2016-12-07 03:46:39 +01:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url = "http://files.minecraftforge.net/maven" }
|
|
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-21 12:28:22 +02:00
|
|
|
plugins {
|
2018-11-12 03:38:13 +01:00
|
|
|
id 'org.spongepowered.plugin' version '0.9.0'
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven { url "https://repo.codemc.org/repository/maven-public" }
|
2016-05-21 12:28:22 +02:00
|
|
|
}
|
|
|
|
|
2016-02-02 07:28:27 +01:00
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2018-11-12 03:38:13 +01:00
|
|
|
compile 'org.spongepowered:spongeapi:7.1.0'
|
|
|
|
compile 'org.bstats:bstats-sponge:1.4'
|
2016-02-02 07:28:27 +01:00
|
|
|
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
|
|
|
|
}
|
|
|
|
|
2017-05-06 08:53:28 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2016-02-02 07:28:27 +01:00
|
|
|
|
2018-11-12 03:38:13 +01:00
|
|
|
jar.archiveName="fawe-sponge-${project.parent.version}.jar"
|
|
|
|
jar.destinationDir = file '../mvn/com/boydti/fawe-sponge/' + project.parent.version
|
|
|
|
task createPom << {
|
|
|
|
pom {
|
|
|
|
project {
|
|
|
|
groupId 'com.boydti'
|
|
|
|
artifactId 'fawe-sponge'
|
|
|
|
version project.parent.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.getEffectivePom()
|
|
|
|
.setDependencies(new ArrayList<>())
|
|
|
|
.writeTo("../mvn/com/boydti/fawe-sponge/${project.parent.version}/fawe-sponge-${project.parent.version}.pom")
|
|
|
|
pom {
|
|
|
|
project {
|
|
|
|
groupId 'com.boydti'
|
|
|
|
artifactId 'fawe-sponge'
|
|
|
|
version 'latest'
|
|
|
|
}
|
2016-05-21 12:28:22 +02:00
|
|
|
}
|
2018-11-12 03:38:13 +01:00
|
|
|
.getEffectivePom()
|
|
|
|
.setDependencies(new ArrayList<>())
|
|
|
|
.writeTo("../mvn/com/boydti/fawe-sponge/latest/fawe-sponge-latest.pom")
|
2016-05-21 12:28:22 +02:00
|
|
|
}
|
2018-11-12 03:38:13 +01:00
|
|
|
task copyFiles {
|
|
|
|
doLast {
|
|
|
|
copy {
|
|
|
|
from "../mvn/com/boydti/fawe-sponge/${project.parent.version}/"
|
|
|
|
into '../mvn/com/boydti/fawe-sponge/latest/'
|
|
|
|
include('*.jar')
|
|
|
|
rename ("fawe-sponge-${project.parent.version}.jar", 'fawe-sponge-latest.jar')
|
|
|
|
}
|
2016-02-02 07:28:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency(':worldedit-core'))
|
|
|
|
}
|
2018-11-12 03:38:13 +01:00
|
|
|
archiveName = "${parent.name}-${project.name.replaceAll("worldedit-", "")}-${parent.version}.jar"
|
|
|
|
destinationDir = file '../target'
|
2016-02-02 07:28:27 +01:00
|
|
|
}
|
|
|
|
|
2018-11-12 03:38:13 +01:00
|
|
|
build.dependsOn(shadowJar)
|
|
|
|
build.finalizedBy(copyFiles)
|
|
|
|
copyFiles.dependsOn(createPom)
|