Files
FancyPlugins/libraries/config/build.gradle.kts
2025-10-06 20:11:45 +02:00

52 lines
1.2 KiB
Kotlin

plugins {
id("java")
id("maven-publish")
id("com.github.johnrengelman.shadow")
}
group = "de.oliver"
description = "Library for plugin configuration"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.fancyinnovations.com/releases")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.9-R0.1-SNAPSHOT")
compileOnly("de.oliver.FancyAnalytics:logger:0.0.8")
compileOnly("org.jetbrains:annotations:26.0.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.12.2")
testImplementation("org.junit.platform:junit-platform-console-standalone:1.12.2")
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(21)
}
java {
withSourcesJar()
withJavadocJar()
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
test {
useJUnitPlatform()
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}