2024-03-05 18:08:54 +01:00
|
|
|
plugins {
|
2024-10-08 21:18:58 +02:00
|
|
|
`maven-publish`
|
|
|
|
`java-library`
|
2024-06-15 07:06:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
val buildNumber: String? = System.getenv("BUILD_NUMBER")
|
|
|
|
|
2024-07-23 04:53:03 +02:00
|
|
|
rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "1.6.2"
|
2024-06-15 07:06:32 +02:00
|
|
|
|
2024-09-08 05:17:08 +02:00
|
|
|
subprojects.filter { it.name != "api" }.forEach {
|
|
|
|
it.project.version = rootProject.version
|
2024-07-12 02:00:03 +02:00
|
|
|
}
|
2024-06-15 07:06:32 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
subprojects {
|
|
|
|
apply(plugin = "maven-publish")
|
|
|
|
apply(plugin = "java-library")
|
2024-07-12 02:00:03 +02:00
|
|
|
|
2024-10-10 20:26:29 +02:00
|
|
|
group = "com.badbones69.crazyauctions"
|
|
|
|
description = "Auction off items in style."
|
2024-07-12 02:00:03 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
repositories {
|
|
|
|
maven("https://repo.codemc.io/repository/maven-public")
|
2024-06-15 07:06:32 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
maven("https://repo.crazycrew.us/libraries")
|
|
|
|
maven("https://repo.crazycrew.us/releases")
|
2024-06-15 07:06:32 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
maven("https://jitpack.io")
|
2024-07-12 02:00:03 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
mavenCentral()
|
2024-07-12 02:00:03 +02:00
|
|
|
}
|
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
|
|
}
|
|
|
|
}
|
2024-07-12 02:00:03 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
tasks {
|
|
|
|
compileJava {
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
options.release.set(21)
|
|
|
|
}
|
2024-06-15 07:06:32 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
javadoc {
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
}
|
2024-06-15 07:06:32 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
processResources {
|
|
|
|
filteringCharset = Charsets.UTF_8.name()
|
2024-06-15 07:06:32 +02:00
|
|
|
}
|
|
|
|
}
|
2024-03-05 18:08:54 +01:00
|
|
|
}
|