55 lines
1.4 KiB
Kotlin
55 lines
1.4 KiB
Kotlin
|
|
plugins {
|
|
id("java")
|
|
application
|
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
|
}
|
|
|
|
group = "com.victorpyra"
|
|
version = "1.0.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.jar {
|
|
manifest {
|
|
attributes["Main-Class"] = "com.github.victorpyra.calc.ExamCalcApp"
|
|
}
|
|
}
|
|
|
|
tasks.javadoc {
|
|
// Bestimmt das Zielverzeichnis (standardmäßig build/docs/javadoc)
|
|
setDestinationDir(file("${layout.buildDirectory.get()}/docs/javadoc"))
|
|
|
|
// Konfiguration des Javadoc-Tools
|
|
(options as StandardJavadocDocletOptions).apply {
|
|
// Nutzt UTF-8, damit Umlaute in deinen deutschen Texten korrekt angezeigt werden
|
|
encoding = "UTF-8"
|
|
charSet = "UTF-8"
|
|
docEncoding = "UTF-8"
|
|
|
|
// Fügt nützliche Links zur Standard-Java-Bibliothek hinzu
|
|
links("https://docs.oracle.com/en/java/javase/17/docs/api/")
|
|
|
|
// Erzeugt eine übersichtliche Struktur
|
|
addStringOption("Xdoclint:none", "-quiet")
|
|
isAuthor = true
|
|
isVersion = true
|
|
windowTitle = "IHK Notenberechner API"
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass.set("com.github.victorpyra.calc.ExamCalcApp")
|
|
} |