Progress but no progress?

This commit is contained in:
destro174
2021-12-25 18:05:07 +01:00
parent 95d219d546
commit 2c0d255219
29 changed files with 599 additions and 155 deletions
+16 -11
View File
@@ -1,13 +1,12 @@
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.0.0"
id("com.github.johnrengelman.shadow") version "7.1.0"
}
allprojects {
val build = System.getenv("BUILD_NUMBER") ?: "SNAPSHOT"
group = "com.alttd.boosters"
version = "1.0.0-BETA-$build"
version = "1.0.0-BETA-SNAPSHOT"
description = "Easily manage all boosters on the Altitude Minecraft Server Network."
}
@@ -17,7 +16,7 @@ subprojects {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(16))
languageVersion.set(JavaLanguageVersion.of(17))
}
}
@@ -41,9 +40,8 @@ subprojects {
configure<PublishingExtension> {
repositories {
maven {
name = "nexus"
url = uri("http://$name:8081/snapshots")
isAllowInsecureProtocol = true
name = "maven"
url = uri("https://repo.destro.xyz/snapshots/")
credentials(PasswordCredentials::class)
}
}
@@ -55,20 +53,27 @@ dependencies {
implementation(project(":boosters-api"))
implementation(project(":plugin"))
implementation(project(":velocity"))
implementation("net.kyori", "adventure-text-minimessage", "4.1.0-SNAPSHOT")
// implementation("net.kyori", "adventure-text-minimessage", "4.2.0-SNAPSHOT")
}
tasks {
shadowJar {
archiveFileName.set("${project.name}-${project.version}.jar")
minimize() {
exclude { it.moduleName == "boosters-api" }
exclude { it.moduleName == "plugin" }
exclude { it.moduleName == "velocity" }
}
listOf(
"net.kyori.adventure.text.minimessage"
).forEach { relocate(it, "${rootProject.group}.lib.$it") }
"net.kyori.adventure.text.minimessage",
"org.spongepowered.configurate"
).forEach { relocate(it, "${rootProject.name}.lib.$it") }
}
build {
dependsOn(shadowJar)
}
}
}