EcoEnchants/Plugin/build.gradle

73 lines
2.4 KiB
Groovy
Raw Normal View History

2020-11-17 12:52:00 +01:00
plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'maven-publish'
id 'maven'
2020-11-17 12:52:00 +01:00
}
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'
2020-11-18 11:34:07 +01:00
compileOnly 'com.github.cryptomorin:kingdoms:1.10.3.1'
2020-11-17 12:52:00 +01:00
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'
2020-12-18 15:59:07 +01:00
compileOnly 'de.janmm14:aac-api:5.0.0'
2020-11-17 12:52:00 +01:00
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')
2020-11-17 14:19:48 +01:00
relocate('org.jetbrains', 'com.willfp.ecoenchants.shaded.jetbrains')
relocate('org.intellij', 'com.willfp.ecoenchants.shaded.intellij')
2020-11-17 15:30:13 +01:00
relocate('org.apache.maven', 'com.willfp.ecoenchants.shaded.maven')
2020-11-17 15:42:37 +01:00
archiveFileName = findProperty("plugin-name") + " v" + findProperty("version") + ".jar"
2020-11-17 12:52:00 +01:00
}
2020-11-17 14:32:11 +01:00
processResources {
filesNotMatching(["**/*.png", "**/models/**", "**/textures/**"]) {
expand projectVersion: findProperty("version")
}
}
2020-11-17 14:32:48 +01:00
jar {
2020-11-17 15:42:37 +01:00
archiveFileName = findProperty("plugin-name") + " v" + findProperty("version") + " " + "unshaded" + ".jar"
2020-11-17 12:52:00 +01:00
}
2020-11-17 16:22:15 +01:00
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
2020-11-20 13:50:33 +01:00
tasks.withType(Jar) {
destinationDirectory = file("$rootDir/bin/")
}
2020-11-17 14:25:16 +01:00
build.dependsOn shadowJar
2020-11-17 12:52:00 +01:00
description = 'EcoEnchants'
2020-11-17 16:22:15 +01:00
compileJava.options.encoding = 'UTF-8'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}