9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2026-01-06 15:41:35 +00:00
Files
rpgregions-2/rpgregions/build.gradle

119 lines
3.9 KiB
Groovy

plugins {
id 'com.github.johnrengelman.shadow'
id 'java'
}
group = pluginGroup
version = pluginVersion
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://repo.codemc.io/repository/maven-snapshots/' }
maven { url 'https://jitpack.io' }
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/" }
// worldguard
maven { url "https://maven.enginehub.org/repo/" }
// PAPI
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
// MythicMobs
maven { url 'https://mvn.lumine.io/repository/maven-public/' }
// Dynmap
maven { url 'https://repo.mikeprimm.com' }
flatDir { dir '../libraries' }
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.5'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.16:1.0.0'
testImplementation 'org.reflections:reflections:0.9.12'
implementation 'net.wesjd:anvilgui:1.5.1-SNAPSHOT' // anvilgui
implementation 'com.github.stefvanschie.inventoryframework:IF:0.10.0' // inventory framework
implementation 'com.gitlab.samb440:languagy:2.0.3-RELEASE' // languagy
implementation 'co.aikar:acf-paper:0.5.0-SNAPSHOT' // commands
implementation 'co.aikar:idb-core:1.0.0-SNAPSHOT' // database
implementation 'org.bstats:bstats-bukkit:2.2.1' // plugin stats
implementation 'io.papermc:paperlib:1.0.4' // paperlib - async teleport on Paper
implementation 'com.zaxxer:HikariCP:2.4.1' //todo remove in future in favour of libraries in plugin.yml
compileOnly ('com.sk89q.worldguard:worldguard-bukkit:7.0.4-SNAPSHOT') {
exclude group: 'com.destroystokyo.paper'
exclude group: 'org.spigotmc'
}
compileOnly ('com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT') {
exclude group: 'com.google'
exclude group: 'org.bukkit'
exclude group: 'org.spigotmc'
}
//compileOnly 'com.zaxxer:HikariCP:2.4.1' // IMPLEMENTED VIA LIBRARIES - database
compileOnly 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT' // spigot
compileOnly 'me.clip:placeholderapi:2.10.4' // PAPI
compileOnly ('com.github.MilkBowl:VaultAPI:1.7') { // vault
exclude group: 'org.bukkit'
}
compileOnly name: 'AlonsoLevels_v2.0-BETA' // alonsolevels
compileOnly name: 'Quests-4.0.1' // quests
compileOnly 'com.github.shynixn.headdatabase:hdb-api:1.0' // head database
compileOnly 'com.github.plan-player-analytics:Plan:5.3.1284' // plan
compileOnly ('io.lumine.xikage:MythicMobs:4.9.1') {
exclude group: 'org.apache.commons'
}
compileOnly name: 'Dynmap-3.1-spigot' // Dynmap
compileOnly 'org.jetbrains:annotations:20.1.0'
compileOnly project(':api')
}
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
// Force warnings
options.compilerArgs << '-Xlint:all'
options.deprecation = true
}
configurations.all {
exclude group: 'commons-io'
exclude group: 'commons-codec'
}
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 {
filter ReplaceTokens, tokens: [version: version]
}