9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-28 11:19:24 +00:00
Files
rpgregions-2/build.gradle

65 lines
1.9 KiB
Groovy

plugins {
id 'com.github.johnrengelman.shadow' version '4.0.4'
id 'java'
}
group = pluginGroup
version = pluginVersion
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
maven {
name = 'papermc-repo'
url = 'https://papermc.io/repo/repository/maven-public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
maven { url "https://maven.enginehub.org/repo/" }
flatDir {
dirs 'libraries'
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT' // spigot
implementation 'co.aikar:acf-paper:0.5.0-SNAPSHOT' // commands
implementation 'co.aikar:idb-core:1.0.0-SNAPSHOT' // database
implementation 'com.zaxxer:HikariCP:2.4.1' // database
implementation 'org.apache.commons:commons-lang3:3.6' // apache commons
implementation 'com.github.stefvanschie.inventoryframework:IF:0.5.17' // inventory framework
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.2-SNAPSHOT' // worldguard
compileOnly name: 'languagy-1.2.6' // languagy
}
shadowJar {
relocate 'co.aikar.commands', 'net.islandearth.rpgmap.libs.acf'
relocate 'co.aikar.idb', 'net.islandearth.rpgmap.libs.idb'
relocate 'com.github.stefvanschie.inventoryframework', 'net.islandearth.inventoryframework'
}
javadoc {
exclude 'net/islandearth/rpgregions/translation/**'
exclude 'net/islandearth/rpgregions/listener/**'
exclude 'net/islandearth/rpgregions/gson/**'
exclude 'net/islandearth/rpgregions/commands/**'
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}