This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
generated from scolastico-dev/s.Default-maven
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
91 lines (78 loc) · 2.08 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("io.gitlab.arturbosch.detekt") version "1.19.0"
id("org.jetbrains.dokka") version "1.6.10"
id("com.github.johnrengelman.shadow") version "7.1.2"
kotlin("jvm") version "1.6.20"
application
}
group = "me.scolastico"
version = "dev-snapshot"
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "12"
}
application {
mainClass.set("me.scolastico.status.Application")
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.6.10")
}
}
apply(plugin="org.jetbrains.dokka")
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "12"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "12"
}
jar{
manifest {
attributes["Main-Class"] = "me.scolastico.status.Application"
}
archiveFileName.set("status.jar")
}
shadowJar{
archiveBaseName.set("status-shadow")
archiveClassifier.set("")
archiveVersion.set("")
}
}
detekt {
buildUponDefaultConfig = true
allRules = false
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
reports {
html.required.set(true)
txt.required.set(true)
xml.required.set(false)
}
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
jvmTarget = "12"
}
tasks.withType<io.gitlab.arturbosch.detekt.DetektCreateBaselineTask>().configureEach {
jvmTarget = "12"
}
dependencies {
testImplementation(kotlin("test"))
implementation("me.scolastico:tools:2.2.3")
implementation("io.leego:banana:2.1.0")
implementation("io.bkbn:kompendium-core:2.3.1")
implementation("io.bkbn:kompendium-swagger-ui:2.3.1")
implementation("ch.qos.logback:logback-core:1.2.11")
implementation("rome:rome:1.0")
implementation("io.github.reactivecircus.cache4k:cache4k:0.5.0")
}