BlueMapAPI/build.gradle.kts

58 lines
1.1 KiB
Plaintext
Raw Normal View History

plugins {
2022-07-05 12:50:26 +02:00
java
`java-library`
id("com.diffplug.spotless") version "6.1.2"
}
group = "de.bluecolored.bluemap.api"
val apiVersion: String by project
version = apiVersion
2022-01-16 14:19:43 +01:00
val javaTarget = 11
java {
2022-07-05 12:50:26 +02:00
sourceCompatibility = JavaVersion.toVersion(javaTarget)
targetCompatibility = JavaVersion.toVersion(javaTarget)
}
repositories {
2022-07-05 12:50:26 +02:00
mavenCentral()
}
dependencies {
2022-07-05 12:50:26 +02:00
api ("com.flowpowered:flow-math:1.0.3")
implementation ("com.google.code.gson:gson:2.8.0")
compileOnly ("org.jetbrains:annotations:23.0.0")
}
spotless {
2022-07-05 12:50:26 +02:00
java {
target ("src/*/java/**/*.java")
2022-07-05 12:50:26 +02:00
licenseHeaderFile("LICENSE_HEADER")
indentWithSpaces()
trimTrailingWhitespace()
}
}
tasks.withType(JavaCompile::class).configureEach {
2022-07-05 12:50:26 +02:00
options.apply {
encoding = "utf-8"
}
}
tasks.withType(AbstractArchiveTask::class).configureEach {
2022-07-05 12:50:26 +02:00
isReproducibleFileOrder = true
isPreserveFileTimestamps = false
}
tasks.javadoc {
2022-07-05 12:50:26 +02:00
options {
(this as? StandardJavadocDocletOptions)?.apply {
links(
"https://docs.oracle.com/javase/8/docs/api/"
)
}
}
}