Skip to content

Commit

Permalink
Include properties from test-autoconfigure in config props appendix
Browse files Browse the repository at this point in the history
Closes gh-24486
  • Loading branch information
wilkinsona committed Dec 15, 2020
1 parent 39751fd commit 76198f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions spring-boot-project/spring-boot-docs/build.gradle
Expand Up @@ -60,6 +60,7 @@ dependencies {
configurationProperties(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "configurationPropertiesMetadata"))
configurationProperties(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "configurationPropertiesMetadata"))
configurationProperties(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "configurationPropertiesMetadata"))
configurationProperties(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "configurationPropertiesMetadata"))

gradlePluginDocumentation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin", configuration: "documentation"))

Expand Down
10 changes: 10 additions & 0 deletions spring-boot-project/spring-boot-test-autoconfigure/build.gradle
Expand Up @@ -82,6 +82,16 @@ dependencies {
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

configurations {
configurationPropertiesMetadata
}

artifacts {
configurationPropertiesMetadata new File(sourceSets.main.output.resourcesDir, "META-INF/spring-configuration-metadata.json"), { artifact ->
artifact.builtBy sourceSets.main.processResourcesTaskName
}
}

test {
include "**/*Tests.class"
}
Expand Down

0 comments on commit 76198f9

Please sign in to comment.