-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
116 lines (103 loc) · 3.89 KB
/
build.gradle.kts
File metadata and controls
116 lines (103 loc) · 3.89 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import com.adarshr.gradle.testlogger.theme.ThemeType
import org.jetbrains.dokka.DokkaConfiguration
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.dokka.gradle.engine.parameters.VisibilityModifier
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm") version "2.3.0"
id("org.jetbrains.dokka") version "2.1.0"
id("org.jetbrains.kotlin.plugin.serialization") version "2.3.0"
id("idea")
id("eclipse")
id("com.adarshr.test-logger") version "4.0.0"
application
}
group = "me.andrew"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
val exposedVersion: String by project
val ktorVersion: String by project
dependencies {
implementation("io.netty:netty-all:4.2.9.Final")
implementation("com.mysql", "mysql-connector-j", "9.5.0")
implementation("org.graalvm.js", "js-scriptengine", "25.0.1")
implementation("org.graalvm.js", "js", "25.0.1")
implementation("org.jetbrains.exposed", "exposed-core", exposedVersion)
implementation("org.jetbrains.exposed", "exposed-dao", exposedVersion)
implementation("org.jetbrains.exposed", "exposed-jdbc", exposedVersion)
implementation("org.jetbrains.exposed", "exposed-java-time", exposedVersion)
implementation("io.github.microutils", "kotlin-logging", "3.0.5")
//implementation("org.slf4j:slf4j-simple:1.7.26")
implementation("com.microsoft.sqlserver:mssql-jdbc:13.3.0.jre11-preview")
implementation("org.postgresql:postgresql:42.7.9")
implementation("org.xerial:sqlite-jdbc:3.51.1.0")
implementation("com.h2database:h2:2.4.240")
implementation("ch.qos.logback:logback-classic:1.5.25")
implementation("org.bouncycastle:bcprov-jdk18on:1.83")
implementation("org.mariadb.jdbc:mariadb-java-client:3.5.7")
implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-server-auth:$ktorVersion")
implementation("io.ktor:ktor-server-core-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-netty-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-html-builder-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-sessions-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-auth-jwt:$ktorVersion")
implementation("io.ktor:ktor-server-call-logging-jvm:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-status-pages:$ktorVersion")
implementation("io.ktor:ktor-server-cors:$ktorVersion")
dokkaPlugin("org.jetbrains.dokka:jekyll-plugin:2.1.0")
dokkaPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:2.1.0")
testImplementation("org.jetbrains.kotlin:kotlin-test:1.9.0")
testImplementation("io.mockk:mockk:1.14.2")
// https://mvnrepository.com/artifact/io.github.oshai/kotlin-logging-jvm
//runtimeOnly("io.github.oshai:kotlin-logging:6.0.3")
}
tasks.test {
useJUnitPlatform()
}
application {
mainClass.set("MainKt")
}
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dokka {
dokkaSourceSets {
configureEach {
documentedVisibilities.set(setOf(
VisibilityModifier.Public,
VisibilityModifier.Protected,
VisibilityModifier.Internal,
VisibilityModifier.Private
))
}
}
}
testlogger {
theme = ThemeType.MOCHA
showExceptions = true
showStackTraces = true
showFullStackTraces = false
showCauses = true
slowThreshold = 2000
showSummary = true
showSimpleNames = false
showPassed = true
showSkipped = true
showFailed = true
showOnlySlow = false
showStandardStreams = false
showPassedStandardStreams = true
showSkippedStandardStreams = true
showFailedStandardStreams = true
logLevel = LogLevel.LIFECYCLE
}