9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2026-01-03 14:12:08 +00:00
Files
rpgregions-2/build.gradle.kts

122 lines
3.6 KiB
Plaintext

plugins {
id("com.github.johnrengelman.shadow") version("7.1.1")
id("java")
}
group = "net.islandearth.rpgregions"
version = "1.4.2"
java.sourceCompatibility = JavaVersion.VERSION_16
java.targetCompatibility = JavaVersion.VERSION_16
dependencies {
testImplementation("junit:junit:4.5")
implementation(project(":rpgregions"))
implementation(project(":modern"))
implementation(project(":api"))
}
tasks.shadowJar {
//dependencies {
// exclude(dependency {
// it.moduleGroup == 'commons-io'
// })
// exclude(dependency {
// it.moduleGroup == 'commons-codec'
// })
//}
relocate("net.islandearth.languagy", "net.islandearth.rpgregions.libs.languagy")
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.libs.inventoryframework")
relocate("org.bstats", "net.islandearth.rpgregions.libs.bstats")
relocate("io.papermc.lib", "net.islandearth.rpgregions.libs.paperlib")
relocate("net.wesjd", "net.islandearth.rpgregions.libs.anvilgui")
}
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
//}
repositories {
mavenCentral()
mavenLocal()
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
maven { url = uri("https://repo.codemc.io/repository/maven-snapshots/") }
maven { url = uri("https://jitpack.io") }
maven { url = uri("https://repo.convallyria.com/snapshots") }
maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
maven { url = uri("https://oss.sonatype.org/content/groups/public/") }
maven { url = uri("https://repo.aikar.co/content/groups/aikar/") }
// worldguard
maven { url = uri("https://maven.enginehub.org/repo/") }
// PAPI
maven { url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/") }
// MythicMobs
maven { url = uri("https://mvn.lumine.io/repository/maven-public/") }
// Dynmap
maven { url = uri("https://repo.mikeprimm.com") }
flatDir { dir("../libraries") }
}
}
allprojects {
group = "net.islandearth.rpgregions"
version = "1.4.2"
apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "java")
repositories {
mavenCentral()
mavenLocal()
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/public/") }
}
dependencies {
}
tasks {
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
shadowJar {
archiveClassifier.set("")
}
build {
dependsOn(shadowJar)
}
processResources {
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
}
}