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

Closes gh-32491
This commit is contained in:
Andy Wilkinson 2022-09-23 16:18:30 +01:00
parent bd8f53a989
commit 4a05230d5d
18 changed files with 11 additions and 7 deletions

View File

@ -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-tools"
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"
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-devtools"
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-autoconfigure"
include "spring-boot-tests:spring-boot-integration-tests:spring-boot-configuration-processor-tests"

View File

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

View File

@ -36,12 +36,11 @@ import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
/**
* An {@link ApplicationListener} that inspects the {@link ConfigurableEnvironment
* 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
* @since 2.0.0
*/
public class PropertiesMigrationListener implements ApplicationListener<SpringApplicationEvent> {
class PropertiesMigrationListener implements ApplicationListener<SpringApplicationEvent> {
private static final Log logger = LogFactory.getLog(PropertiesMigrationListener.class);