2019-08-07 23:16:44 +00:00
|
|
|
plugins {
|
|
|
|
id "com.github.johnrengelman.shadow"
|
|
|
|
}
|
2016-07-01 21:13:49 +00:00
|
|
|
repositories {
|
2019-08-07 23:16:44 +00:00
|
|
|
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
|
|
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
2020-02-11 20:24:40 +00:00
|
|
|
maven { url = "https://jitpack.io" }
|
2019-01-21 08:20:33 +00:00
|
|
|
maven { url = "https://repo.codemc.org/repository/maven-public" }
|
2020-08-11 18:12:31 +00:00
|
|
|
maven { url = "https://repo.extendedclip.com/content/repositories/placeholderapi/" }
|
2019-01-21 08:20:33 +00:00
|
|
|
maven {
|
2019-08-07 23:16:44 +00:00
|
|
|
name = "papermc"
|
|
|
|
url = "https://papermc.io/repo/repository/maven-public/"
|
2019-01-21 08:20:33 +00:00
|
|
|
}
|
2020-05-23 17:43:32 +00:00
|
|
|
maven { url = "https://ci.ender.zone/plugin/repository/everything/" }
|
2020-10-04 11:23:11 +00:00
|
|
|
maven { url = "https://mvn.intellectualsites.com/content/repositories/releases" }
|
2020-05-15 16:41:57 +00:00
|
|
|
maven { url = "https://mvn.intellectualsites.com/content/repositories/snapshots" }
|
2020-07-14 18:41:08 +00:00
|
|
|
maven { url = "http://repo.mvdw-software.be/content/groups/public/" }
|
2016-11-21 03:24:27 +00:00
|
|
|
mavenLocal()
|
2016-07-01 21:13:49 +00:00
|
|
|
}
|
|
|
|
|
2019-08-05 17:33:27 +00:00
|
|
|
|
2016-02-23 04:11:28 +00:00
|
|
|
dependencies {
|
2020-05-14 13:45:27 +00:00
|
|
|
implementation(project(":PlotSquared-Core"))
|
2020-04-11 17:52:45 +00:00
|
|
|
compile("org.bstats:bstats-bukkit:1.7")
|
2020-05-14 13:45:27 +00:00
|
|
|
compile(project(":PlotSquared-Core"))
|
2020-11-03 14:58:17 +00:00
|
|
|
compile("com.destroystokyo.paper:paper-api:1.16.4-R0.1-SNAPSHOT")
|
|
|
|
implementation("org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT")
|
|
|
|
compile(group: "com.sk89q.worldedit", name: "worldedit-bukkit", version: "7.2.0") {
|
2020-06-30 02:05:32 +00:00
|
|
|
exclude(module: "bukkit")
|
|
|
|
}
|
2020-07-12 12:43:57 +00:00
|
|
|
compile("io.papermc:paperlib:1.0.4")
|
2019-09-04 01:04:51 +00:00
|
|
|
implementation("net.kyori:text-adapter-bukkit:3.0.3")
|
2020-02-11 20:24:40 +00:00
|
|
|
compile("com.github.MilkBowl:VaultAPI:1.7") {
|
2019-08-07 23:16:44 +00:00
|
|
|
exclude(module: "bukkit")
|
2016-11-21 03:24:27 +00:00
|
|
|
}
|
2020-05-25 05:09:28 +00:00
|
|
|
implementation("me.clip:placeholderapi:2.10.6")
|
2020-05-25 09:13:10 +00:00
|
|
|
implementation("net.luckperms:api:5.1")
|
2020-08-11 14:20:33 +00:00
|
|
|
implementation("net.ess3:EssentialsX:2.18.0") {
|
2020-07-08 10:21:31 +00:00
|
|
|
exclude(group: "io.papermc", module: "paperlib")
|
|
|
|
}
|
2020-05-16 19:36:54 +00:00
|
|
|
compile("se.hyperver.hyperverse:Core:0.6.0-SNAPSHOT"){ transitive = false }
|
2020-05-25 13:13:31 +00:00
|
|
|
compile('com.sk89q:squirrelid:1.0.0-SNAPSHOT'){ transitive = false }
|
2020-10-04 11:23:11 +00:00
|
|
|
compile('be.maximvdw:MVdWPlaceholderAPI:3.1.1'){ transitive = false }
|
2016-02-23 04:11:28 +00:00
|
|
|
}
|
|
|
|
|
2018-11-14 23:06:20 +00:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
2016-02-26 12:55:21 +00:00
|
|
|
|
|
|
|
processResources {
|
2019-08-06 19:05:04 +00:00
|
|
|
from("src/main/resources") {
|
2019-08-07 23:16:44 +00:00
|
|
|
include("plugin.yml")
|
2016-02-26 12:55:21 +00:00
|
|
|
expand(
|
2018-08-10 15:01:10 +00:00
|
|
|
name: project.parent.name,
|
|
|
|
version: project.parent.version
|
2016-02-26 12:55:21 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2019-10-30 14:05:52 +00:00
|
|
|
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
2020-04-11 00:57:00 +00:00
|
|
|
jar.archiveFileName = "PlotSquared-Bukkit-${project.parent.version}.jar"
|
2020-04-11 00:39:02 +00:00
|
|
|
jar.destinationDirectory = file("../mvn/com/plotsquared/PlotSquared-Bukkit/" + project.parent.version)
|
2019-10-30 14:05:52 +00:00
|
|
|
task createPom {
|
|
|
|
doLast {
|
|
|
|
pom {
|
|
|
|
project {
|
2020-04-11 00:39:02 +00:00
|
|
|
groupId = rootProject.group
|
|
|
|
artifactId = "PlotSquared-Bukkit"
|
|
|
|
version = rootProject.version
|
2019-10-30 14:05:52 +00:00
|
|
|
}
|
2020-04-11 00:39:02 +00:00
|
|
|
}.writeTo("../mvn/com/plotsquared/PlotSquared-Bukkit/${project.parent.version}/PlotSquared-Bukkit-${project.parent.version}.pom")
|
2019-10-30 14:05:52 +00:00
|
|
|
pom {
|
|
|
|
project {
|
2020-04-11 00:39:02 +00:00
|
|
|
groupId = rootProject.group
|
|
|
|
artifactId = "PlotSquared-Bukkit"
|
2019-10-30 14:05:52 +00:00
|
|
|
version = "latest"
|
|
|
|
}
|
2020-04-11 00:39:02 +00:00
|
|
|
}.writeTo("../mvn/com/plotsquared/PlotSquared-Bukkit/latest/PlotSquared-Bukkit-latest.pom")
|
|
|
|
.writeTo("pom.xml")
|
2019-10-30 14:05:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task copyFiles {
|
|
|
|
doLast {
|
|
|
|
copy {
|
2020-04-11 00:39:02 +00:00
|
|
|
from("../mvn/com/plotsquared/PlotSquared-Bukkit/${project.parent.version}/")
|
|
|
|
into("../mvn/com/plotsquared/PlotSquared-Bukkit/latest/")
|
|
|
|
include("PlotSquared-Bukkit*.jar")
|
|
|
|
rename("PlotSquared-Bukkit-${project.parent.version}.jar", "PlotSquared-Bukkit-latest.jar")
|
2019-10-30 14:05:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-01 21:13:49 +00:00
|
|
|
|
2016-02-23 04:11:28 +00:00
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
2020-05-14 13:45:27 +00:00
|
|
|
include(dependency(":PlotSquared-Core"))
|
2020-07-12 12:43:57 +00:00
|
|
|
include(dependency("io.papermc:paperlib:1.0.4"))
|
2019-08-07 23:16:44 +00:00
|
|
|
include(dependency("net.kyori:text-adapter-bukkit:3.0.3"))
|
2020-04-11 17:52:45 +00:00
|
|
|
include(dependency("org.bstats:bstats-bukkit:1.7"))
|
2020-05-25 13:13:31 +00:00
|
|
|
include(dependency("org.khelekore:prtree:1.7.0-SNAPSHOT"))
|
|
|
|
include(dependency("com.sk89q:squirrelid:1.0.0-SNAPSHOT"))
|
2016-02-23 04:11:28 +00:00
|
|
|
}
|
2020-04-11 00:19:18 +00:00
|
|
|
relocate('net.kyori.text', 'com.plotsquared.formatting.text')
|
|
|
|
relocate("io.papermc.lib", "com.plotsquared.bukkit.paperlib")
|
2020-04-16 04:11:03 +00:00
|
|
|
relocate("org.bstats", "com.plotsquared.metrics")
|
2020-05-17 15:26:48 +00:00
|
|
|
relocate('com.sk89q.squirrelid', 'com.plotsquared.squirrelid')
|
2020-05-25 13:13:31 +00:00
|
|
|
relocate('org.khelekore.prtree', 'com.plotsquared.prtree')
|
2020-05-14 12:51:23 +00:00
|
|
|
archiveFileName = "${project.name}-${parent.version}.jar"
|
2019-09-07 20:46:13 +00:00
|
|
|
destinationDirectory = file "../target"
|
2016-02-26 12:55:21 +00:00
|
|
|
}
|
2016-07-01 21:13:49 +00:00
|
|
|
|
2016-02-26 12:55:21 +00:00
|
|
|
shadowJar.doLast {
|
|
|
|
task ->
|
2018-08-10 15:01:10 +00:00
|
|
|
ant.checksum file: task.archivePath
|
2016-02-23 04:11:28 +00:00
|
|
|
}
|
|
|
|
|
2018-12-21 16:26:19 +00:00
|
|
|
build.dependsOn(shadowJar)
|
2019-10-30 14:05:52 +00:00
|
|
|
build.finalizedBy(copyFiles)
|
|
|
|
copyFiles.dependsOn(createPom)
|