From ea087b9bac31480052695f68789e91911ce75c79 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Mon, 31 Jul 2017 17:12:01 -0700 Subject: [PATCH] Move liquibase config properties to spring.liquibase Closes gh-9897 --- .../SpringApplicationHierarchyTests.java | 4 ++-- .../endpoint/LiquibaseEndpointTests.java | 2 +- .../liquibase/LiquibaseAutoConfiguration.java | 2 +- .../liquibase/LiquibaseProperties.java | 2 +- .../LiquibaseAutoConfigurationTests.java | 22 ++++++++--------- .../HibernateJpaAutoConfigurationTests.java | 2 +- .../appendix-application-properties.adoc | 24 +++++++++---------- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/SpringApplicationHierarchyTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/SpringApplicationHierarchyTests.java index a732e3f5725..b6d03d8f46d 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/SpringApplicationHierarchyTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/SpringApplicationHierarchyTests.java @@ -50,7 +50,7 @@ public class SpringApplicationHierarchyTests { @Test public void testParent() { SpringApplicationBuilder builder = new SpringApplicationBuilder(Child.class); - builder.properties("spring.flyway.enabled=false", "liquibase.enabled=false"); + builder.properties("spring.flyway.enabled=false", "spring.liquibase.enabled=false"); builder.parent(Parent.class); this.context = builder.run("--server.port=0"); } @@ -58,7 +58,7 @@ public class SpringApplicationHierarchyTests { @Test public void testChild() { SpringApplicationBuilder builder = new SpringApplicationBuilder(Parent.class); - builder.properties("spring.flyway.enabled=false", "liquibase.enabled=false"); + builder.properties("spring.flyway.enabled=false", "spring.liquibase.enabled=false"); builder.child(Child.class); this.context = builder.run("--server.port=0"); } diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpointTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpointTests.java index fefe552e9d1..97eb5f018c9 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpointTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpointTests.java @@ -51,7 +51,7 @@ public class LiquibaseEndpointTests extends AbstractEndpointTests[0], new Class[] { LiquibaseAutoConfiguration.class }, "spring.datasource.initialize:false", - "liquibase.changeLog:classpath:db/changelog/db.changelog-city.yaml", + "spring.liquibase.changeLog:classpath:db/changelog/db.changelog-city.yaml", "spring.jpa.hibernate.ddl-auto:validate"); } diff --git a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc index 218bcfd6c6c..051ef8e1139 100644 --- a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc +++ b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc @@ -551,18 +551,18 @@ content into your application; rather pick only the properties that you need. spring.flyway.validate-on-migrate= # # LIQUIBASE ({sc-spring-boot-autoconfigure}/liquibase/LiquibaseProperties.{sc-ext}[LiquibaseProperties]) - liquibase.change-log=classpath:/db/changelog/db.changelog-master.yaml # Change log configuration path. - liquibase.check-change-log-location=true # Check the change log location exists. - liquibase.contexts= # Comma-separated list of runtime contexts to use. - liquibase.default-schema= # Default database schema. - liquibase.drop-first=false # Drop the database schema first. - liquibase.enabled=true # Enable liquibase support. - liquibase.labels= # Comma-separated list of runtime labels to use. - liquibase.parameters.*= # Change log parameters. - liquibase.password= # Login password of the database to migrate. - liquibase.rollback-file= # File to which rollback SQL will be written when an update is performed. - liquibase.url= # JDBC url of the database to migrate. If not set, the primary configured data source is used. - liquibase.user= # Login user of the database to migrate. + spring.liquibase.change-log=classpath:/db/changelog/db.changelog-master.yaml # Change log configuration path. + spring.liquibase.check-change-log-location=true # Check the change log location exists. + spring.liquibase.contexts= # Comma-separated list of runtime contexts to use. + spring.liquibase.default-schema= # Default database schema. + spring.liquibase.drop-first=false # Drop the database schema first. + spring.liquibase.enabled=true # Enable liquibase support. + spring.liquibase.labels= # Comma-separated list of runtime labels to use. + spring.liquibase.parameters.*= # Change log parameters. + spring.liquibase.password= # Login password of the database to migrate. + spring.liquibase.rollback-file= # File to which rollback SQL will be written when an update is performed. + spring.liquibase.url= # JDBC url of the database to migrate. If not set, the primary configured data source is used. + spring.liquibase.user= # Login user of the database to migrate. # COUCHBASE ({sc-spring-boot-autoconfigure}/couchbase/CouchbaseProperties.{sc-ext}[CouchbaseProperties]) spring.couchbase.bootstrap-hosts= # Couchbase nodes (host or IP address) to bootstrap from.