mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
52 lines
1.3 KiB
Kotlin
52 lines
1.3 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.19.4-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(17) //TODO change to 21, once 1.19.4 support is dropped
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
javadoc {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
processResources {
|
|
filteringCharset = Charsets.UTF_8.name()
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(17)) //TODO change to 21, once 1.19.4 support is dropped
|
|
}
|