Skip to content

Commit

Permalink
JM-5322: use hmcts spring-support-library (#46)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Ben Edwards <ben.edwards@cgi.com>
  • Loading branch information
npv0 and Ben-Edwards-cgi authored Nov 10, 2023
1 parent 247c182 commit 7b7a986
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ dependencies {

//End

implementation files('lib/spring-support-library-0.1.5-plain.jar')
implementation 'com.github.hmcts:juror-spring-support-library:1.0.2'

implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: springVersion
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: springVersion
Expand Down Expand Up @@ -299,7 +299,8 @@ flyway {
defaultSchema = 'scheduler_application'
table = 'schema_history'
cleanDisabled = false
sqlMigrationPrefix = 'scheduler-V'
}

//project.tasks['integration'].dependsOn flywayClean
//project.tasks['integration'].dependsOn flywayMigrate
//project.tasks['integration'].dependsOn flywayMigrate
Binary file removed lib/spring-support-library-0.1.5-plain.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class ContainerDB {
.defaultSchema("scheduler_application")
.table("schema_history")
.dataSource(jdbcUrl, username, password)
.sqlMigrationPrefix("scheduler-V")
.load();
flyway.migrate();
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ spring:
table: schema_history
user: ${spring.datasource.username}
password: ${spring.datasource.password}
sql-migration-prefix: scheduler-V
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
hibernate:
Expand Down

0 comments on commit 7b7a986

Please sign in to comment.