-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (44 loc) · 1.48 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.4.32"
kotlin("plugin.spring") version "1.4.32"
}
group = "cz.exposed.spring.failing.transactions"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
val springBootPlatform = platform("org.springframework.boot:spring-boot-dependencies:2.5.0")
annotationProcessor(springBootPlatform)
implementation(springBootPlatform)
implementation("org.springframework.boot", "spring-boot-starter-web")
implementation("org.postgresql", "postgresql")
val exposedVersion = "0.32.1"
implementation("org.jetbrains.exposed:exposed-spring-boot-starter:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-java-time:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation(platform("org.testcontainers:testcontainers-bom:1.15.2"))
implementation("org.testcontainers:postgresql")
}
allprojects {
apply(plugin = "java")
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
}
}
withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_11.majorVersion
targetCompatibility = JavaVersion.VERSION_11.majorVersion
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}