plugins { id 'com.github.johnrengelman.shadow' version '5.2.0' id 'com.willfp.ecoenchants.java-conventions' id 'java' } dependencies { implementation project(':API') implementation project(':v1_15_R1') implementation project(':v1_16_R1') implementation project(':v1_16_R2') implementation project(':v1_16_R3') implementation 'org.apache.maven:maven-artifact:3.0.3' implementation 'org.jetbrains:annotations:19.0.0' implementation 'org.bstats:bstats-bukkit:1.7' compileOnly 'org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT' compileOnly 'commons-io:commons-io:2.8.0' compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.4-SNAPSHOT' compileOnly 'com.github.TechFortress:GriefPrevention:16.14.0' compileOnly 'com.massivecraft:Factions:1.6.9.5-U0.5.10' shadow files('../lib/Kingdoms-1.9.2.0.0.2.jar') shadow files('../lib/SpartanAPI.jar') compileOnly 'com.github.TownyAdvanced:Towny:0.96.2.0' compileOnly 'com.github.angeschossen:LandsAPI:4.7.3' compileOnly 'fr.neatmonster:nocheatplus:3.16.1-SNAPSHOT' compileOnly 'de.janmm14:aac-api:4.2.0' compileOnly 'com.github.jiangdashao:matrix-api-repo:317d4635fd' compileOnly 'com.comphenix.protocol:ProtocolLib:4.6.0-SNAPSHOT' compileOnly 'net.ess3:EssentialsX:2.18.1' compileOnly 'com.destroystokyo.paper:paper-api:1.16.3-R0.1-SNAPSHOT' compileOnly 'com.gmail.nossr50.mcMMO:mcMMO:2.1.157' compileOnly 'me.clip:placeholderapi:2.10.9' } shadowJar { relocate('org.bstats.bukkit', 'com.willfp.ecoenchants.shaded.bstats') relocate('org.jetbrains', 'com.willfp.ecoenchants.shaded.jetbrains') relocate('org.intellij', 'com.willfp.ecoenchants.shaded.intellij') relocate('org.apache.maven', 'com.willfp.ecoenchants.shaded.maven') { exclude 'org.codehaus.plexus.util' } relocate('org.codehaus.plexus.util', 'com.willfp.ecoenchants.shaded.plexus') archiveName = findProperty("plugin-name") + " v" + findProperty("version") + ".jar" } jar{ archiveName = findProperty("plugin-name") + " v" + findProperty("version") + " " + "unshaded" + ".jar" } compileJava.dependsOn clean build.dependsOn shadowJar description = 'EcoEnchants'