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

114 lines
3.3 KiB
Plaintext

plugins {
id("com.github.johnrengelman.shadow") version("7.1.2")
id("java")
}
group = "net.islandearth.rpgregions"
version = "1.4.3"
java.sourceCompatibility = JavaVersion.VERSION_16
java.targetCompatibility = JavaVersion.VERSION_16
dependencies {
testImplementation("junit:junit:4.13.2")
implementation(project(":rpgregions"))
implementation(project(":modern"))
implementation(project(":api"))
}
tasks.shadowJar {
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("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://jitpack.io")
maven("https://repo.convallyria.com/snapshots")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.aikar.co/content/groups/aikar/")
// worldguard
maven("https://maven.enginehub.org/repo/")
// PAPI
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
// MythicMobs
maven("https://mvn.lumine.io/repository/maven-public/")
// Dynmap
maven("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("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)
}
}
}
}