-
Notifications
You must be signed in to change notification settings - Fork 696
/
build.gradle.kts
39 lines (30 loc) · 1.05 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
val exposedVersion: String by project
val h2Version: String by project
val flywayVersion: String by project
plugins {
id("application")
kotlin("jvm") version "2.0.0"
}
group = "org.jetbrains.exposed.samples.migration"
version = "0.0.1"
application {
mainClass = "ApplicationKt"
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-migration:$exposedVersion")
implementation("com.h2database:h2:$h2Version")
implementation("org.flywaydb:flyway-core:$flywayVersion")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.register<JavaExec>("generateMigrationScript") {
group = "application"
description = "Generate migration script in the path exposed-migration/migrations"
classpath = sourceSets.main.get().runtimeClasspath
mainClass = "GenerateMigrationScriptKt"
}