CrazyAuctions/build.gradle.kts
2024-10-08 15:18:58 -04:00

52 lines
1.2 KiB
Plaintext

plugins {
`maven-publish`
`java-library`
}
val buildNumber: String? = System.getenv("BUILD_NUMBER")
rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "1.6.2"
subprojects.filter { it.name != "api" }.forEach {
it.project.version = rootProject.version
}
subprojects {
apply(plugin = "maven-publish")
apply(plugin = "java-library")
group = "com.badbones69.crazycrates"
description = "Create unlimited crates with multiple crate types to choose from!"
repositories {
maven("https://repo.codemc.io/repository/maven-public")
maven("https://repo.crazycrew.us/libraries")
maven("https://repo.crazycrew.us/releases")
maven("https://jitpack.io")
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(21)
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
}
}