-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
90 lines (79 loc) · 2.99 KB
/
build.gradle.kts
File metadata and controls
90 lines (79 loc) · 2.99 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
buildscript {
repositories {
mavenCentral()
jcenter()
gradlePluginPortal()
}
}
repositories {
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
group = "com.mildlyskilled.reader"
application {
mainClass.set("ReaderKt")
}
val kotlinVersion: String by project
val http4kVersion: String by project
val h2Version: String by project
val exposedVersion: String by project
val postgresqlVersion: String by project
val hikariCpVersion: String by project
val flywayVersion: String by project
val junitVersion: String by project
val config4kVersion: String by project
val kotlinJunit: String by project
val jacksonDataTypeJoda: String by project
val auth0Version: String by project
val scryptVersion: String by project
val muLoggingVersion: String by project
val arrowVersion: String by project
val kotlinReflect: String by project
plugins {
application
kotlin("jvm") version "1.4.0"
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinReflect")
implementation("org.http4k:http4k-core:$http4kVersion")
implementation("org.http4k:http4k-format-jackson-xml:$http4kVersion")
implementation("org.http4k:http4k-format-kotlinx-serialization:$http4kVersion")
implementation("org.http4k:http4k-client-okhttp:$http4kVersion")
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jodatime:$exposedVersion")
implementation("org.postgresql:postgresql:$postgresqlVersion")
implementation("com.zaxxer:HikariCP:$hikariCpVersion")
implementation("io.github.config4k:config4k:$config4kVersion")
implementation("com.auth0:java-jwt:$auth0Version")
implementation("com.lambdaworks:scrypt:$scryptVersion")
implementation("io.github.microutils:kotlin-logging-jvm:$muLoggingVersion")
implementation("io.arrow-kt:arrow-core:$arrowVersion")
testImplementation("com.h2database:h2:$h2Version")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("io.kotest:kotest-runner-junit5:$kotlinJunit")
testImplementation("io.kotest:kotest-assertions-core:$kotlinJunit")
}
tasks {
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
withType<Test> {
useJUnitPlatform()
maxParallelForks = 1
jvmArgs = listOf("-Dlogback.configurationFile=resources/logback.local.xml")
testLogging {
events("passed", "skipped", "failed")
showStackTraces = true
showExceptions = true
showStandardStreams = false
}
}
}