mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-13 06:07:37 +01:00
52dccf793f
Signed-off-by: mworzala <mattheworzala@gmail.com> make some loggers private (cherry picked from commit 03ff6dca3493646098bf194ebd19aadf90ecf800) add slf4j dep to codegen module (cherry picked from commit b9136e3e579e98a0567e7ecf838c72ff5c159858) add back slf4j dep (cherry picked from commit 174c5b8b6a3223310e250fb5dad48b179b101fe5) remove tinylog and MinestomTerminal (cherry picked from commit 352161c326fe2dbb5989e5a45571c76795407ff5)
92 lines
2.5 KiB
Plaintext
92 lines
2.5 KiB
Plaintext
plugins {
|
|
`java-library`
|
|
id("minestom.publishing-conventions")
|
|
id("minestom.native-conventions")
|
|
alias(libs.plugins.blossom)
|
|
}
|
|
|
|
allprojects {
|
|
group = "net.minestom.server"
|
|
version = "1.0"
|
|
description = "Lightweight and multi-threaded Minecraft server implementation"
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir(file("src/autogenerated/java"))
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
tasks {
|
|
withType<Javadoc> {
|
|
(options as? StandardJavadocDocletOptions)?.apply {
|
|
encoding = "UTF-8"
|
|
|
|
// Custom options
|
|
addBooleanOption("html5", true)
|
|
addStringOption("-release", "17")
|
|
// Links to external javadocs
|
|
links("https://docs.oracle.com/en/java/javase/17/docs/api/")
|
|
links("https://jd.adventure.kyori.net/api/${libs.versions.adventure.get()}/")
|
|
}
|
|
}
|
|
withType<Zip> {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
|
|
blossom {
|
|
val git = "src/main/java/net/minestom/server/Git.java"
|
|
|
|
val gitCommit = System.getenv("GIT_COMMIT")
|
|
val gitBranch = System.getenv("GIT_BRANCH")
|
|
val group = System.getenv("GROUP")
|
|
val artifact = System.getenv("ARTIFACT")
|
|
|
|
replaceToken("\"&COMMIT\"", if (gitCommit == null) "null" else "\"${gitCommit}\"", git)
|
|
replaceToken("\"&BRANCH\"", if (gitBranch == null) "null" else "\"${gitBranch}\"", git)
|
|
replaceToken("\"&GROUP\"", if (group == null) "null" else "\"${group}\"", git)
|
|
replaceToken("\"&ARTIFACT\"", if (artifact == null) "null" else "\"${artifact}\"", git)
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
// Testing Framework
|
|
testImplementation(project(mapOf("path" to ":testing")))
|
|
// Only here to ensure J9 module support for extensions and our classloaders
|
|
testCompileOnly(libs.mockito.core)
|
|
|
|
// Performance improving libraries
|
|
implementation(libs.caffeine)
|
|
api(libs.fastutil)
|
|
implementation(libs.bundles.flare)
|
|
|
|
// Libraries
|
|
api(libs.gson)
|
|
implementation(libs.jcTools)
|
|
// Path finding
|
|
api(libs.hydrazine)
|
|
implementation("org.slf4j:slf4j-api:2.0.6")
|
|
|
|
// Adventure, for user-interface
|
|
api(libs.bundles.adventure)
|
|
|
|
// Kotlin Libraries
|
|
api(libs.bundles.kotlin)
|
|
|
|
// Minestom Data (From MinestomDataGenerator)
|
|
implementation(libs.minestomData)
|
|
|
|
// NBT parsing/manipulation/saving
|
|
api("io.github.jglrxavpok.hephaistos:common:${libs.versions.hephaistos.get()}")
|
|
api("io.github.jglrxavpok.hephaistos:gson:${libs.versions.hephaistos.get()}")
|
|
}
|
|
|