PlotSquared/Bukkit/build.gradle

132 lines
4.8 KiB
Groovy
Raw Normal View History

2019-08-08 01:16:44 +02:00
plugins {
id "com.github.johnrengelman.shadow"
}
2016-07-01 23:13:49 +02:00
repositories {
2019-08-08 01:16:44 +02:00
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url = "https://jitpack.io" }
maven { url = "https://repo.codemc.org/repository/maven-public" }
2020-02-16 20:33:24 +01:00
maven { url = "http://repo.extendedclip.com/content/repositories/placeholderapi/" }
maven {
2019-08-08 01:16:44 +02:00
name = "papermc"
url = "https://papermc.io/repo/repository/maven-public/"
}
maven { url = "https://ci.ender.zone/plugin/repository/everything/" }
maven { url = "https://mvn.intellectualsites.com/content/repositories/snapshots" }
maven { url = "https://repo.wea-ondara.net/repository/public/" }
2016-11-21 04:24:27 +01:00
mavenLocal()
2016-07-01 23:13:49 +02:00
}
2019-08-05 19:33:27 +02:00
2016-02-23 05:11:28 +01:00
dependencies {
2020-05-14 15:45:27 +02:00
implementation(project(":PlotSquared-Core"))
2020-04-11 19:52:45 +02:00
compile("org.bstats:bstats-bukkit:1.7")
2020-05-14 15:45:27 +02:00
compile(project(":PlotSquared-Core"))
2020-06-27 02:38:30 +02:00
compile("com.destroystokyo.paper:paper-api:1.16.1-R0.1-SNAPSHOT")
implementation("org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT")
2020-06-30 04:05:32 +02:00
compile(group: "com.sk89q.worldedit", name: "worldedit-bukkit", version: "7.1.0") {
exclude(module: "bukkit")
}
2020-07-12 14:43:57 +02:00
compile("io.papermc:paperlib:1.0.4")
2019-09-04 03:04:51 +02:00
implementation("net.kyori:text-adapter-bukkit:3.0.3")
compile("com.github.MilkBowl:VaultAPI:1.7") {
2019-08-08 01:16:44 +02:00
exclude(module: "bukkit")
2016-11-21 04:24:27 +01:00
}
implementation("me.clip:placeholderapi:2.10.6")
implementation("net.luckperms:api:5.1")
implementation("net.ess3:EssentialsX:2.17.2") {
exclude(group: "io.papermc", module: "paperlib")
}
implementation("net.alpenblock:BungeePerms:4.0-dev-106")
2020-05-16 21:36:54 +02:00
compile("se.hyperver.hyperverse:Core:0.6.0-SNAPSHOT"){ transitive = false }
compile('com.sk89q:squirrelid:1.0.0-SNAPSHOT'){ transitive = false }
2020-07-13 20:39:52 +02:00
// logging
implementation('org.apache.logging.log4j:log4j-slf4j-impl:2.8.1')
2016-02-23 05:11:28 +01:00
}
2018-11-15 00:06:20 +01:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
processResources {
2019-08-06 21:05:04 +02:00
from("src/main/resources") {
2019-08-08 01:16:44 +02:00
include("plugin.yml")
expand(
2018-08-10 17:01:10 +02:00
name: project.parent.name,
version: project.parent.version
)
}
}
2019-10-30 15:05:52 +01:00
//noinspection GroovyAssignabilityCheck
2020-04-11 02:57:00 +02:00
jar.archiveFileName = "PlotSquared-Bukkit-${project.parent.version}.jar"
jar.destinationDirectory = file("../mvn/com/plotsquared/PlotSquared-Bukkit/" + project.parent.version)
2019-10-30 15:05:52 +01:00
task createPom {
doLast {
pom {
project {
groupId = rootProject.group
artifactId = "PlotSquared-Bukkit"
version = rootProject.version
2019-10-30 15:05:52 +01:00
}
}.writeTo("../mvn/com/plotsquared/PlotSquared-Bukkit/${project.parent.version}/PlotSquared-Bukkit-${project.parent.version}.pom")
2019-10-30 15:05:52 +01:00
pom {
project {
groupId = rootProject.group
artifactId = "PlotSquared-Bukkit"
2019-10-30 15:05:52 +01:00
version = "latest"
}
}.writeTo("../mvn/com/plotsquared/PlotSquared-Bukkit/latest/PlotSquared-Bukkit-latest.pom")
.writeTo("pom.xml")
2019-10-30 15:05:52 +01:00
}
}
task copyFiles {
doLast {
copy {
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 15:05:52 +01:00
}
}
}
2016-07-01 23:13:49 +02:00
2016-02-23 05:11:28 +01:00
shadowJar {
dependencies {
2020-05-14 15:45:27 +02:00
include(dependency(":PlotSquared-Core"))
2020-07-12 14:43:57 +02:00
include(dependency("io.papermc:paperlib:1.0.4"))
2019-08-08 01:16:44 +02:00
include(dependency("net.kyori:text-adapter-bukkit:3.0.3"))
2020-04-11 19:52:45 +02:00
include(dependency("org.bstats:bstats-bukkit:1.7"))
include(dependency("org.khelekore:prtree:1.7.0-SNAPSHOT"))
include(dependency("com.sk89q:squirrelid:1.0.0-SNAPSHOT"))
2020-07-10 22:12:37 +02:00
include(dependency("com.google.inject:guice:4.2.3"))
include(dependency("com.google.inject.extensions:guice-assistedinject:4.2.3"))
2020-07-14 18:49:40 +02:00
include(dependency("javax.annotation:javax-annotation-api"))
include(dependency('org.apache.logging.log4j:log4j-slf4j-impl'))
include(dependency('org.slf4j:slf4j-api'))
2016-02-23 05:11:28 +01:00
}
Merge branch 'v6' into feature/v6/platform # Conflicts: # Bukkit/build.gradle # Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java # Bukkit/src/main/java/com/plotsquared/bukkit/listener/ChunkListener.java # Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java # Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitUtil.java # Bukkit/src/main/java/com/plotsquared/bukkit/uuid/SquirrelIdUUIDService.java # Core/build.gradle # Core/src/main/java/com/plotsquared/core/PlotSquared.java # Core/src/main/java/com/plotsquared/core/command/Claim.java # Core/src/main/java/com/plotsquared/core/command/Debug.java # Core/src/main/java/com/plotsquared/core/command/DebugExec.java # Core/src/main/java/com/plotsquared/core/command/Purge.java # Core/src/main/java/com/plotsquared/core/command/Trim.java # Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java # Core/src/main/java/com/plotsquared/core/database/SQLManager.java # Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java # Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java # Core/src/main/java/com/plotsquared/core/generator/SquarePlotManager.java # Core/src/main/java/com/plotsquared/core/generator/SquarePlotWorld.java # Core/src/main/java/com/plotsquared/core/listener/ProcessedWEExtent.java # Core/src/main/java/com/plotsquared/core/player/ConsolePlayer.java # Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java # Core/src/main/java/com/plotsquared/core/plot/Plot.java # Core/src/main/java/com/plotsquared/core/plot/PlotArea.java # Core/src/main/java/com/plotsquared/core/plot/PlotInventory.java # Core/src/main/java/com/plotsquared/core/plot/expiration/ExpireManager.java # Core/src/main/java/com/plotsquared/core/plot/expiration/PlotAnalysis.java # Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java # Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java # Core/src/main/java/com/plotsquared/core/plot/message/PlotMessage.java # Core/src/main/java/com/plotsquared/core/util/LegacyConverter.java # Core/src/main/java/com/plotsquared/core/util/MainUtil.java # Core/src/main/java/com/plotsquared/core/util/RegionManager.java # Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java # Core/src/main/java/com/plotsquared/core/uuid/UUIDPipeline.java
2020-07-14 19:05:05 +02:00
2020-04-11 02:19:18 +02:00
relocate('net.kyori.text', 'com.plotsquared.formatting.text')
relocate("io.papermc.lib", "com.plotsquared.bukkit.paperlib")
relocate("org.bstats", "com.plotsquared.metrics")
2020-05-17 17:26:48 +02:00
relocate('com.sk89q.squirrelid', 'com.plotsquared.squirrelid')
relocate('org.khelekore.prtree', 'com.plotsquared.prtree')
relocate('org.apache.logging.slf4j', 'com.plotsquared.logging.apache')
relocate('org.slf4j', 'com.plotsquared.logging.slf4j')
2020-07-14 18:49:40 +02:00
relocate('com.google.inject', 'com.plotsquared.google')
2020-05-14 14:51:23 +02:00
archiveFileName = "${project.name}-${parent.version}.jar"
2019-09-07 22:46:13 +02:00
destinationDirectory = file "../target"
}
2016-07-01 23:13:49 +02:00
shadowJar.doLast {
task ->
2018-08-10 17:01:10 +02:00
ant.checksum file: task.archivePath
2016-02-23 05:11:28 +01:00
}
build.dependsOn(shadowJar)
2019-10-30 15:05:52 +01:00
build.finalizedBy(copyFiles)
copyFiles.dependsOn(createPom)