mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2026-01-06 15:41:35 +00:00
Cleanup build.gradle files, bump dependencies
This commit is contained in:
97
build.gradle
97
build.gradle
@@ -9,43 +9,6 @@ version = pluginVersion
|
||||
java.sourceCompatibility = JavaVersion.VERSION_16
|
||||
java.targetCompatibility = JavaVersion.VERSION_16
|
||||
|
||||
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'
|
||||
implementation project(':rpgregions')
|
||||
@@ -71,16 +34,58 @@ tasks.shadowJar {
|
||||
relocate 'net.wesjd', 'net.islandearth.rpgregions.libs.anvilgui'
|
||||
}
|
||||
|
||||
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"
|
||||
allprojects {
|
||||
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
|
||||
// Force warnings
|
||||
options.compilerArgs << '-Xlint:all'
|
||||
options.deprecation = true
|
||||
}
|
||||
|
||||
java.sourceCompatibility = JavaVersion.VERSION_16
|
||||
java.targetCompatibility = JavaVersion.VERSION_16
|
||||
|
||||
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' }
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn shadowJar
|
||||
|
||||
@@ -2,60 +2,11 @@ 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' }
|
||||
}
|
||||
|
||||
var compileWithUltraRegions = Boolean.parseBoolean(ultraRegionsSupport)
|
||||
compileJava {
|
||||
if (!compileWithUltraRegions) sourceSets.main.java.exclude "**/net/islandearth/rpgregions/api/integrations/ultraregions/UltraRegionsIntegration.java"
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation group: 'junit', name: 'junit', version: '4.12'
|
||||
implementation 'com.gitlab.samb440:languagy:2.0.3-RELEASE' // languagy
|
||||
|
||||
@@ -6,50 +6,13 @@ plugins {
|
||||
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.5.0'
|
||||
testImplementation 'org.reflections:reflections:0.9.12'
|
||||
testImplementation 'com.github.seeseemelk:MockBukkit-v1.17-SNAPSHOT'
|
||||
testImplementation 'org.reflections:reflections:0.10'
|
||||
|
||||
implementation 'net.wesjd:anvilgui:1.5.3-SNAPSHOT' // anvilgui
|
||||
implementation 'com.github.stefvanschie.inventoryframework:IF:0.10.2' // inventory framework
|
||||
implementation 'com.github.stefvanschie.inventoryframework:IF:0.10.3' // 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
|
||||
@@ -85,18 +48,6 @@ dependencies {
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user