Files
getting-started/spring-boot/data-migration/flyway/build.gradle
Petromir Dzhunev 78fd7fb89f REFLECT-2 Add missing bits
Add undo migration, add Jenkins files, add Java-base migration
2020-04-22 22:41:47 +02:00

49 lines
1.1 KiB
Groovy

plugins {
id 'org.springframework.boot' version '2.2.3.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
id "org.flywaydb.flyway" version "6.2.3"
}
group = 'io.reflectoring'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok'
// Spring
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
// Database
implementation 'org.flywaydb:flyway-core'
runtimeOnly 'com.h2database:h2'
// Add jaxb since it's no longer available in Java 11
runtime 'javax.xml.bind:jaxb-api:2.3.1'
// Test
testCompile 'org.assertj:assertj-core'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation('org.junit.jupiter:junit-jupiter:5.5.1')
}
test {
useJUnitPlatform()
}
flyway {
url = 'jdbc:h2:mem:'
locations = [
// Add this if you have Java-based migrations
'classpath:db/migration'
]
}