REFLECT-2 Integrating H2 with Flyway
This commit is contained in:
committed by
akuksin
parent
d8ca7d3f04
commit
681d34b775
@@ -1,7 +1,8 @@
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.2.2.RELEASE'
|
||||
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.0"
|
||||
}
|
||||
|
||||
group = 'io.reflectoring'
|
||||
@@ -13,13 +14,34 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter'
|
||||
implementation 'org.flywaydb:flyway-core'
|
||||
testImplementation('org.springframework.boot:spring-boot-starter-test') {
|
||||
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||
}
|
||||
|
||||
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:1.4.199'
|
||||
|
||||
// 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:'
|
||||
user = 'sa'
|
||||
password = ''
|
||||
}
|
||||
Reference in New Issue
Block a user