-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
55 lines (48 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.7.3"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
kotlin("jvm") version "1.6.21"
kotlin("plugin.spring") version "1.6.21"
id("org.flywaydb.flyway") version "9.2.0"
id("application")
}
group = "tech.ks"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
maven { url = uri("https://repo.spring.io/release") }
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:2.7.3")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.flywaydb:flyway-core:9.2.0")
implementation("org.postgresql:postgresql:42.5.0")
implementation("org.springframework.boot:spring-boot-starter-quartz:2.7.3")
/** In order to have quartz spring boot starter working properly the import below is necessary.
* Without it, you need to specify which job-store class you need to use, specify a data-source and
* include other libraries.
*/
implementation("org.springframework.boot:spring-boot-starter-jdbc:2.7.3")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
flyway {
url = "jdbc:postgresql://localhost:5432/tech-ks-quartz"
driver = "org.postgresql.Driver"
user = "postgres"
password = "example"
baselineOnMigrate = true
locations = arrayOf("filesystem:src/main/resources/db/migration")
}