Skip to content

Commit

Permalink
Upgrade Liquibase to 4.24.0 and align with Spring Boot 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Mar 20, 2024
1 parent 42666d7 commit 96a9f3f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public class FlowableCommonRuntimeHints implements RuntimeHintsRegistrar {
@Override
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
ResourceHints resourceHints = hints.resources();
resourceHints.registerPattern("META-INF/services/liquibase.hub.HubService");
resourceHints.registerPattern("META-INF/services/liquibase.license.LicenseService");
resourceHints.registerResourceBundle("org.flowable.common.engine.impl.de.odysseus.el.misc.LocalStrings");
// If we can detect which DB is being used we can perhaps register only the appropriate DB file
resourceHints.registerPattern("org/flowable/common/db/properties/*.properties");
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,12 @@
*/
public abstract class LiquibaseBasedSchemaManager implements SchemaManager {

private static final String LIQUIBASE_HUB_SERVICE_CLASS_NAME = "liquibase.hub.HubService";
protected static final Map<String, Object> LIQUIBASE_SCOPE_VALUES = new HashMap<>();

static {
if (ClassUtils.isPresent(LIQUIBASE_HUB_SERVICE_CLASS_NAME, null)) {
LIQUIBASE_SCOPE_VALUES.put("liquibase.plugin." + LIQUIBASE_HUB_SERVICE_CLASS_NAME, FlowableLiquibaseHubService.class);
LoggerUIService uiService = new LoggerUIService();
uiService.setStandardLogLevel(Level.FINE);
LIQUIBASE_SCOPE_VALUES.put(Scope.Attr.ui.name(), uiService);
}
LoggerUIService uiService = new LoggerUIService();
uiService.setStandardLogLevel(Level.FINE);
LIQUIBASE_SCOPE_VALUES.put(Scope.Attr.ui.name(), uiService);
}

protected final Logger logger = LoggerFactory.getLogger(getClass());
Expand Down

This file was deleted.

This file was deleted.

18 changes: 17 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,28 @@
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>4.21.1</version>
<version>4.24.0</version>
<exclusions>
<!--
Even though liquibase defines all these dependencies as compile dependencies.
Flowable runs correctly with Liquibase without all of these dependencies.
-->
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
</exclusion>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down

0 comments on commit 96a9f3f

Please sign in to comment.