Skip to content

Commit

Permalink
Disable Spring Boot liquibase properties
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda committed Jul 15, 2020
1 parent 22fb2f2 commit 96cc19d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 60 deletions.
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<properties>
<spring-boot.version>2.3.1.RELEASE</spring-boot.version>
<hibernate.version>5.4.17.Final</hibernate.version>
<liquibase-core.version>3.4.0</liquibase-core.version>
<liquibase-maven-plugin.version>3.4.0</liquibase-maven-plugin.version>
<liquibase-core.version>4.0.0</liquibase-core.version>
<liquibase-maven-plugin.version>4.0.0</liquibase-maven-plugin.version>
<liquibase-hibernate5.version>3.10.1</liquibase-hibernate5.version>
<validation-api.version>2.0.1.Final</validation-api.version>
<javassist.version>3.27.0-GA</javassist.version>
Expand Down Expand Up @@ -93,21 +93,21 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<activatedProfile>dev</activatedProfile>
<activeProfile>dev</activeProfile>
</properties>
</profile>

<profile>
<id>test</id>
<properties>
<activatedProfile>test</activatedProfile>
<activeProfile>test</activeProfile>
</properties>
</profile>

<profile>
<id>prod</id>
<properties>
<activatedProfile>prod</activatedProfile>
<activeProfile>prod</activeProfile>
</properties>
</profile>
</profiles>
Expand Down Expand Up @@ -136,9 +136,9 @@
<version>${liquibase-maven-plugin.version}</version>
<configuration>
<propertyFile>src/main/resources/liquibase.properties</propertyFile>
<outputChangeLogFile>src/main/resources/db/db.changelog-${activatedProfile}.xml</outputChangeLogFile>
<changeLogFile>src/main/resources/db/db.changelog-${activatedProfile}.xml</changeLogFile>
<diffChangeLogFile>src/main/resources/db/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<outputChangeLogFile>src/main/resources/db/db.changelog-${activeProfile}.xml</outputChangeLogFile>
<changeLogFile>src/main/resources/db/db.changelog-${activeProfile}.xml</changeLogFile>
<diffChangeLogFile>src/main/resources/db/changelog/${activeProfile}/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<logging>info</logging>
</configuration>

Expand Down
17 changes: 3 additions & 14 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,14 @@ spring:
url: ${spring.datasource.url}
username: ${spring.datasource.username}
password: ${spring.datasource.password}

jpa:
hibernate:
ddl-auto: none

# Liquibase properties
devtools:
restart:
enabled: true
liquibase:
enabled: false

## Server Properties
server:
port: 8080

management:
endpoints:
web:
exposure:
include: ["health","info"]
endpoint:
auditevents:
enabled: true
port: 8081
16 changes: 3 additions & 13 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,11 @@ spring:
ddl-auto: update

# Liquibase properties
devtools:
restart:
enabled: true

liquibase:
enabled: false

## Server Properties
server:
port: 8080
port: 8081

management:
endpoints:
web:
exposure:
include: ["health","info"]
endpoint:
auditevents:
enabled: true

15 changes: 3 additions & 12 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,11 @@ spring:
ddl-auto: none

# Liquibase properties
devtools:
restart:
enabled: true
liquibase:
enabled: false

## Server Properties
server:
port: 8080
port: 8081

management:
endpoints:
web:
exposure:
include: ["health","info"]
endpoint:
auditevents:
enabled: true

15 changes: 3 additions & 12 deletions src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,11 @@ spring:
ddl-auto: none

# Liquibase properties
devtools:
restart:
enabled: true
liquibase:
enabled: false

## Server Properties
server:
port: 8080
port: 8081

management:
endpoints:
web:
exposure:
include: ["health","info"]
endpoint:
auditevents:
enabled: true

2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
spring:
profiles:
active: @activatedProfile@
active: '@activeProfile@'

0 comments on commit 96cc19d

Please sign in to comment.