import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { id("java-library") id("net.ltgt.apt-eclipse") id("net.ltgt.apt-idea") } applyPlatformAndCoreConfiguration() applyShadowConfiguration() repositories { maven { name = "paper" url = uri("https://papermc.io/repo/repository/maven-public/") } maven { name = "bstats" url = uri("https://repo.codemc.org/repository/maven-public") } } dependencies { "compile"(project(":worldguard-core")) //"compile"(project(":worldguard-libs:bukkit")) "api"("com.destroystokyo.paper:paper-api:1.16.1-R0.1-SNAPSHOT") "implementation"("io.papermc:paperlib:1.0.4") "api"("com.sk89q.worldedit:worldedit-bukkit:${Versions.WORLDEDIT}") { isTransitive = false } "implementation"("com.sk89q:commandbook:2.3") { isTransitive = false } "implementation"("org.bstats:bstats-bukkit:1.7") } tasks.named("processResources") { filesMatching("plugin.yml") { expand("internalVersion" to project.ext["internalVersion"]) } } tasks.named("jar") { manifest { attributes("Implementation-Version" to project.version) } } tasks.named("shadowJar") { dependencies { relocate("org.bstats", "com.sk89q.worldguard.bukkit.bstats") { include(dependency("org.bstats:bstats-bukkit:1.7")) } relocate ("io.papermc.lib", "com.sk89q.worldguard.bukkit.paperlib") { include(dependency("io.papermc:paperlib:1.0.4")) } } } tasks.named("assemble").configure { dependsOn("shadowJar") }