9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-31 04:36:29 +00:00
Files
rpgregions-2/build.gradle

75 lines
2.2 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 {
name = 'CodeMC'
url = 'https://repo.codemc.org/repository/maven-public'
}
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
// worldguard
maven { url "https://maven.enginehub.org/repo/" }
// languagy
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 (included as it has changed in versions)
implementation 'com.github.stefvanschie.inventoryframework:IF:0.5.17' // inventory framework
implementation 'org.bstats:bstats-bukkit:1.5' // plugin stats
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.rpgregions.libs.acf'
relocate 'co.aikar.idb', 'net.islandearth.rpgregions.libs.idb'
relocate 'com.github.stefvanschie.inventoryframework', 'net.islandearth.rpgregions.inventoryframework'
relocate 'org.bstats', 'net.islandearth.rpgregions.bstats'
}
javadoc {
exclude 'net/islandearth/rpgregions/translation/**'
exclude 'net/islandearth/rpgregions/listener/**'
exclude 'net/islandearth/rpgregions/gson/**'
exclude 'net/islandearth/rpgregions/commands/**'
exclude 'net/islandearth/rpgregions/utils/**'
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}