Boosters/build.gradle.kts

80 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

2021-09-06 17:35:04 +00:00
plugins {
`java-library`
2021-11-04 16:57:55 +00:00
`maven-publish`
2024-07-21 16:48:28 +00:00
id("io.github.goooler.shadow") version "8.1.8"
2021-09-06 17:35:04 +00:00
}
allprojects {
group = "com.alttd.boosters"
2021-12-25 17:05:07 +00:00
version = "1.0.0-BETA-SNAPSHOT"
2021-09-06 17:35:04 +00:00
description = "Easily manage all boosters on the Altitude Minecraft Server Network."
apply<JavaLibraryPlugin>()
2021-11-04 16:57:55 +00:00
apply(plugin = "maven-publish")
2021-09-06 17:35:04 +00:00
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
2021-09-06 17:35:04 +00:00
}
}
2024-07-21 16:48:28 +00:00
}
2021-09-06 17:35:04 +00:00
2024-07-21 16:48:28 +00:00
subprojects {
2021-09-06 17:35:04 +00:00
tasks {
withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
}
withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()
}
}
2021-11-04 16:57:55 +00:00
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
configure<PublishingExtension> {
repositories {
maven {
2021-12-25 17:05:07 +00:00
name = "maven"
url = uri("https://repo.destro.xyz/snapshots/")
2021-11-04 16:57:55 +00:00
credentials(PasswordCredentials::class)
}
mavenCentral()
2021-11-04 16:57:55 +00:00
}
}
}
2021-09-06 17:35:04 +00:00
}
dependencies {
implementation(project(":boosters-api"))
implementation(project(":plugin"))
implementation(project(":velocity"))
}
tasks {
shadowJar {
archiveFileName.set("${project.name}-${project.version}.jar")
2021-12-25 17:05:07 +00:00
minimize() {
exclude { it.moduleName == "boosters-api" }
exclude { it.moduleName == "plugin" }
exclude { it.moduleName == "velocity" }
}
2021-09-06 17:35:04 +00:00
listOf(
// "net.kyori.adventure.text.minimessage",
2021-12-25 17:05:07 +00:00
"org.spongepowered.configurate"
).forEach { relocate(it, "${rootProject.name}.lib.$it") }
2021-09-06 17:35:04 +00:00
}
build {
dependsOn(shadowJar)
}
2021-12-25 17:05:07 +00:00
}