-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (45 loc) · 1.52 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot")
id("io.spring.dependency-management")
id("org.liquibase.gradle")
kotlin("jvm")
kotlin("plugin.jpa")
kotlin("plugin.spring")
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.liquibase:liquibase-core")
liquibaseRuntime("org.liquibase:liquibase-core")
liquibaseRuntime("org.liquibase:liquibase-groovy-dsl:2.1.1")
liquibaseRuntime("info.picocli:picocli:4.7.5")
liquibaseRuntime("org.yaml:snakeyaml:1.33")
liquibaseRuntime("mysql:mysql-connector-java:8.0.28")
implementation("mysql:mysql-connector-java:${property("mysqlVersion")}")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
liquibase {
activities.register("main") {
this.arguments = mapOf(
"changelogFile" to "db/changelog/db.changelog-dev.xml",
"url" to System.getProperty("DB_URL"),
"username" to System.getProperty("USERNAME"),
"password" to System.getProperty("PASSWORD"),
"searchPath" to "src/main/resources"
)
}
}