This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
121 lines (96 loc) · 3.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
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
116
117
118
119
120
121
plugins {
idea
id("org.springframework.boot") version "2.6.2"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
val kotlinCompilerVersion = "1.5.31"
kotlin("jvm") version kotlinCompilerVersion
kotlin("kapt") version kotlinCompilerVersion
kotlin("plugin.spring") version kotlinCompilerVersion
kotlin("plugin.serialization") version kotlinCompilerVersion
}
group = "sh.weller"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
// Kotlin
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
// Coroutines
val kotlinCoroutinesVersion = "1.6.0"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutinesVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:$kotlinCoroutinesVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-debug:$kotlinCoroutinesVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinCoroutinesVersion")
implementation("io.projectreactor.tools:blockhound:1.0.6.RELEASE")
// General Spring & Web
kapt("org.springframework.boot:spring-boot-configuration-processor")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.session:spring-session-core")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-logging")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
// UI
implementation("org.springframework.boot:spring-boot-starter-mustache")
implementation("org.webjars:webjars-locator:0.42")
implementation("org.webjars.npm:bulma:0.9.3")
implementation("org.webjars.npm:fortawesome__fontawesome-free:5.15.4")
// RSS
val romeToolsVersion = "1.16.0"
implementation("com.rometools:rome:$romeToolsVersion")
implementation("com.rometools:rome-opml:$romeToolsVersion")
// Database
implementation("org.springframework:spring-r2dbc")
implementation("io.r2dbc:r2dbc-pool")
implementation("io.r2dbc:r2dbc-h2")
implementation("com.h2database:h2")
implementation("io.r2dbc:r2dbc-postgresql")
runtimeOnly("org.springframework:spring-jdbc")
runtimeOnly("org.flywaydb:flyway-core")
runtimeOnly("org.postgresql:postgresql")
// Misc
implementation("io.github.microutils:kotlin-logging:2.1.21")
// Dev Dependencies
// developmentOnly("org.springframework.boot:spring-boot-devtools")
developmentOnly("org.springframework.boot:spring-boot-starter-actuator")
// Test
testImplementation("org.springframework.boot:spring-boot-starter-test")
// testImplementation("org.springframework.security:spring-security-test")
testImplementation(kotlin("test-common"))
testImplementation(kotlin("test-annotations-common"))
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter")
val testContainersVersion = "1.16.2"
testImplementation("org.testcontainers:testcontainers:$testContainersVersion")
testImplementation("org.testcontainers:postgresql:$testContainersVersion")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinCoroutinesVersion")
val striktVersion = "0.33.0"
testImplementation("io.strikt:strikt-core:$striktVersion")
testImplementation("io.strikt:strikt-jvm:$striktVersion")
}
tasks {
compileKotlin {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xopt-in=kotlin.RequiresOptIn")
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}