plugins { id 'java' } 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.15:0.3.0' testImplementation 'org.reflections:reflections:0.9.12' implementation 'com.gitlab.samb440:languagy:2.0.3-RELEASE' // languagy implementation 'io.papermc:paperlib:1.0.4' // paperlib - async teleport on Paper compileOnly 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT' // spigot compileOnly 'com.github.MilkBowl:VaultAPI:1.7' // vault compileOnly 'me.clip:placeholderapi:2.10.4' // PAPI compileOnly name: 'AlonsoLevels_v2.0-BETA' // alonsolevels compileOnly 'com.github.shynixn.headdatabase:hdb-api:1.0' // head database compileOnly 'org.jetbrains:annotations:22.0.0' compileOnly ('com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT') { exclude group: 'com.google' exclude group: 'org.bukkit' exclude group: 'org.spigotmc' } compileOnly ('com.sk89q.worldguard:worldguard-bukkit:7.0.4-SNAPSHOT') { exclude group: 'com.destroystokyo.paper' exclude group: 'org.spigotmc' } compileOnly ('io.lumine.xikage:MythicMobs:4.9.1') { exclude group: 'org.apache.commons' } } 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 }