Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
ea244aa3
Commit
ea244aa3
authored
Aug 02, 2019
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
Closes gh-17769
parents
f021c227
faaada14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
26 deletions
+11
-26
LiquibaseAutoConfiguration.java
...t/autoconfigure/liquibase/LiquibaseAutoConfiguration.java
+0
-12
LiquibaseProperties.java
...ork/boot/autoconfigure/liquibase/LiquibaseProperties.java
+0
-13
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+11
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration.java
View file @
ea244aa3
...
...
@@ -18,7 +18,6 @@ package org.springframework.boot.autoconfigure.liquibase;
import
java.util.function.Supplier
;
import
javax.annotation.PostConstruct
;
import
javax.persistence.EntityManagerFactory
;
import
javax.sql.DataSource
;
...
...
@@ -46,13 +45,11 @@ import org.springframework.context.annotation.Bean;
import
org.springframework.context.annotation.Conditional
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Import
;
import
org.springframework.core.io.Resource
;
import
org.springframework.core.io.ResourceLoader
;
import
org.springframework.jdbc.core.JdbcOperations
;
import
org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations
;
import
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean
;
import
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
;
import
org.springframework.util.Assert
;
/**
* {@link EnableAutoConfiguration Auto-configuration} for Liquibase.
...
...
@@ -95,15 +92,6 @@ public class LiquibaseAutoConfiguration {
this
.
resourceLoader
=
resourceLoader
;
}
@PostConstruct
public
void
checkChangelogExists
()
{
if
(
this
.
properties
.
isCheckChangeLogLocation
())
{
Resource
resource
=
this
.
resourceLoader
.
getResource
(
this
.
properties
.
getChangeLog
());
Assert
.
state
(
resource
.
exists
(),
()
->
"Cannot find changelog location: "
+
resource
+
" (please add changelog or check your Liquibase configuration)"
);
}
}
@Bean
public
SpringLiquibase
liquibase
(
DataSourceProperties
dataSourceProperties
,
ObjectProvider
<
DataSource
>
dataSource
,
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseProperties.java
View file @
ea244aa3
...
...
@@ -38,11 +38,6 @@ public class LiquibaseProperties {
*/
private
String
changeLog
=
"classpath:/db/changelog/db.changelog-master.yaml"
;
/**
* Whether to check that the change log location exists.
*/
private
boolean
checkChangeLogLocation
=
true
;
/**
* Comma-separated list of runtime contexts to use.
*/
...
...
@@ -128,14 +123,6 @@ public class LiquibaseProperties {
this
.
changeLog
=
changeLog
;
}
public
boolean
isCheckChangeLogLocation
()
{
return
this
.
checkChangeLogLocation
;
}
public
void
setCheckChangeLogLocation
(
boolean
checkChangeLogLocation
)
{
this
.
checkChangeLogLocation
=
checkChangeLogLocation
;
}
public
String
getContexts
()
{
return
this
.
contexts
;
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
ea244aa3
...
...
@@ -1054,7 +1054,7 @@
"description"
:
"Check the change log location exists."
,
"defaultValue"
:
true
,
"deprecation"
:
{
"re
placement"
:
"spring.liquibase.check-change-log-location
"
,
"re
ason"
:
"Liquibase has it's own check that checks if the change log location exists making this property redundant.
"
,
"level"
:
"error"
}
},
...
...
@@ -1963,6 +1963,16 @@
"level"
:
"error"
}
},
{
"name"
:
"spring.liquibase.check-change-log-location"
,
"type"
:
"java.lang.Boolean"
,
"description"
:
"Check the change log location exists."
,
"defaultValue"
:
true
,
"deprecation"
:
{
"reason"
:
"Liquibase has it's own check that checks if the change log location exists making this property redundant."
,
"level"
:
"error"
}
},
{
"name"
:
"spring.messages.cache-seconds"
,
"type"
:
"java.lang.Integer"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment