diff --git a/spring-boot-project/spring-boot-dependencies/build.gradle b/spring-boot-project/spring-boot-dependencies/build.gradle index d2fdc4ca192..2e5d2fb7327 100644 --- a/spring-boot-project/spring-boot-dependencies/build.gradle +++ b/spring-boot-project/spring-boot-dependencies/build.gradle @@ -936,7 +936,7 @@ bom { ] } } - library("Liquibase", "3.10.2") { + library("Liquibase", "3.10.3") { group("org.liquibase") { modules = [ "liquibase-core" { diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java index 34da198a7e8..a9502aef6a9 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package org.springframework.boot; import java.io.ByteArrayOutputStream; +import java.io.IOException; import java.io.PrintStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; @@ -88,8 +89,13 @@ class SpringApplicationBannerPrinter { private Banner getTextBanner(Environment environment) { String location = environment.getProperty(BANNER_LOCATION_PROPERTY, DEFAULT_BANNER_LOCATION); Resource resource = this.resourceLoader.getResource(location); - if (resource.exists()) { - return new ResourceBanner(resource); + try { + if (resource.exists() && !resource.getURL().toExternalForm().contains("liquibase-core")) { + return new ResourceBanner(resource); + } + } + catch (IOException ex) { + // Ignore } return null; }