Skip to content

Commit

Permalink
Configure database for non-test mode
Browse files Browse the repository at this point in the history
- Move .sql resources to main/resources
- Use H2 for both test and non-test.

This allows bootRun to work as expected.
  • Loading branch information
joemoore authored and cschuyle committed Nov 15, 2023
1 parent 8add028 commit 85caf8f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' // See https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#test_framework_implementation_dependencies

implementation 'org.springframework.data:spring-data-jdbc'
testImplementation 'com.h2database:h2'
implementation 'com.h2database:h2'
}

tasks.named('test') {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 85caf8f

Please sign in to comment.