Move spring-boot-properties-migrator into spring-boot-tools

Closes gh-32491
pull/32487/head
Andy Wilkinson 2 years ago
parent bd8f53a989
commit 4a05230d5d

@ -62,6 +62,7 @@ include "spring-boot-project:spring-boot-tools:spring-boot-jarmode-layertools"
include "spring-boot-project:spring-boot-tools:spring-boot-loader" include "spring-boot-project:spring-boot-tools:spring-boot-loader"
include "spring-boot-project:spring-boot-tools:spring-boot-loader-tools" include "spring-boot-project:spring-boot-tools:spring-boot-loader-tools"
include "spring-boot-project:spring-boot-tools:spring-boot-maven-plugin" include "spring-boot-project:spring-boot-tools:spring-boot-maven-plugin"
include "spring-boot-project:spring-boot-tools:spring-boot-properties-migrator"
include "spring-boot-project:spring-boot-tools:spring-boot-test-support" include "spring-boot-project:spring-boot-tools:spring-boot-test-support"
include "spring-boot-project:spring-boot" include "spring-boot-project:spring-boot"
include "spring-boot-project:spring-boot-autoconfigure" include "spring-boot-project:spring-boot-autoconfigure"
@ -70,7 +71,6 @@ include "spring-boot-project:spring-boot-actuator-autoconfigure"
include "spring-boot-project:spring-boot-cli" include "spring-boot-project:spring-boot-cli"
include "spring-boot-project:spring-boot-devtools" include "spring-boot-project:spring-boot-devtools"
include "spring-boot-project:spring-boot-docs" include "spring-boot-project:spring-boot-docs"
include "spring-boot-project:spring-boot-properties-migrator"
include "spring-boot-project:spring-boot-test" include "spring-boot-project:spring-boot-test"
include "spring-boot-project:spring-boot-test-autoconfigure" include "spring-boot-project:spring-boot-test-autoconfigure"
include "spring-boot-tests:spring-boot-integration-tests:spring-boot-configuration-processor-tests" include "spring-boot-tests:spring-boot-integration-tests:spring-boot-configuration-processor-tests"

@ -1,5 +1,5 @@
plugins { plugins {
id "java-library" id "java"
id "org.springframework.boot.conventions" id "org.springframework.boot.conventions"
id "org.springframework.boot.deployed" id "org.springframework.boot.deployed"
} }
@ -7,11 +7,16 @@ plugins {
description = "Spring Boot Properties Migrator" description = "Spring Boot Properties Migrator"
dependencies { dependencies {
api(project(":spring-boot-project:spring-boot")) implementation(project(":spring-boot-project:spring-boot"))
api(project(":spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata")) implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata"))
testImplementation(project(":spring-boot-project:spring-boot-test")) testImplementation(project(":spring-boot-project:spring-boot-test"))
testImplementation("org.junit.jupiter:junit-jupiter") testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core") testImplementation("org.assertj:assertj-core")
testImplementation("org.springframework:spring-test") testImplementation("org.springframework:spring-test")
} }
tasks.named("javadoc").configure {
// No public or protected classes
enabled = false
}

@ -36,12 +36,11 @@ import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
/** /**
* An {@link ApplicationListener} that inspects the {@link ConfigurableEnvironment * An {@link ApplicationListener} that inspects the {@link ConfigurableEnvironment
* environment} for configuration keys that need to be migrated. Automatically renames the * environment} for configuration keys that need to be migrated. Automatically renames the
* keys that have a matching replacement and log a report of what was discovered. * keys that have a matching replacement and logs a report of what was discovered.
* *
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 2.0.0
*/ */
public class PropertiesMigrationListener implements ApplicationListener<SpringApplicationEvent> { class PropertiesMigrationListener implements ApplicationListener<SpringApplicationEvent> {
private static final Log logger = LogFactory.getLog(PropertiesMigrationListener.class); private static final Log logger = LogFactory.getLog(PropertiesMigrationListener.class);
Loading…
Cancel
Save