-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (56 loc) · 1.8 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jetbrains.kotlin.jvm") version "1.6.10"
id("com.revolut.jooq-docker") version "0.3.7"
}
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
jooq {
image {
tag = "13.4-alpine"
}
}
tasks {
generateJooqClasses {
basePackageName = "com.github.imperial.troopers.postgres.playground.jooq"
excludeFlywayTable = true
}
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
withType<Test> {
useJUnitPlatform()
systemProperty("org.jooq.no-logo", "true")
systemProperty("org.jooq.no-tips", "true")
testLogging {
events = setOf(PASSED, SKIPPED, FAILED)
exceptionFormat = FULL
}
}
}
dependencies {
implementation(enforcedPlatform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
jdbc("org.postgresql:postgresql")
implementation("org.postgresql:postgresql")
implementation("org.jooq:jooq")
implementation("org.flywaydb:flyway-core:8.4.4")
implementation("ch.qos.logback:logback-classic:1.2.10")
testImplementation("org.testcontainers:postgresql:1.16.3")
testImplementation("io.strikt:strikt-jvm:0.34.1")
testImplementation(enforcedPlatform("org.junit:junit-bom:5.8.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
}