-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
114 lines (101 loc) · 3.87 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import com.adarshr.gradle.testlogger.theme.ThemeType
import org.jetbrains.dokka.DokkaConfiguration
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.10"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.10"
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.1.106.Final")
implementation("com.mysql", "mysql-connector-j", "8.0.33")
implementation("org.graalvm.js", "js-scriptengine", "23.0.1")
implementation("org.graalvm.js", "js", "23.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:12.5.0.jre11-preview")
implementation("org.postgresql:postgresql:42.6.0")
implementation("org.xerial:sqlite-jdbc:3.42.0.0")
implementation("com.h2database:h2:2.2.220")
implementation("ch.qos.logback:logback-classic:1.4.14")
implementation("org.bouncycastle:bcprov-jdk18on:1.77")
implementation("org.mariadb.jdbc:mariadb-java-client:3.3.2")
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")
dokkaGfmPlugin("org.jetbrains.dokka:jekyll-plugin:1.8.20")
dokkaGfmPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.8.20")
testImplementation("org.jetbrains.kotlin:kotlin-test:1.9.0")
// 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
}
tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
documentedVisibilities.set(
setOf(
DokkaConfiguration.Visibility.PUBLIC,
DokkaConfiguration.Visibility.PROTECTED,
DokkaConfiguration.Visibility.INTERNAL,
DokkaConfiguration.Visibility.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
}