-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
88 lines (68 loc) · 1.91 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotestVersion = "5.6.2"
plugins {
kotlin("jvm") version "1.9.0"
kotlin("plugin.serialization") version "1.9.0"
id("maven-publish")
application
}
group = "io.korpi"
version = "1.0.0"
repositories {
mavenCentral()
mavenLocal()
}
buildscript {
repositories {
mavenLocal()
}
}
dependencies {
implementation("org.jdbi:jdbi3-core:3.1.0")
// Types and serialization
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
implementation("app.softwork:kotlinx-uuid-core:0.0.21")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
implementation("io.arrow-kt:arrow-core:1.2.0")
implementation("io.arrow-kt:arrow-fx-coroutines:1.2.0")
// Testing
implementation("com.zaxxer:HikariCP:5.0.1")
testImplementation(kotlin("test"))
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest.extensions:kotest-assertions-arrow:1.3.3")
implementation("org.postgresql:postgresql:42.3.8")
implementation("com.h2database:h2:2.2.220")
runtimeOnly("com.h2database:h2")
runtimeOnly("org.postgresql:postgresql")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClass.set("MainKt")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "io.korpi"
artifactId = "query4k"
version = "1.0.0"
pom {
name.set("query4k")
}
from(components["java"])
}
}
repositories {
mavenLocal()
}
}