Add spring-configuration-metadata
- Adding boot's annotation processor to spring-shell-autoconfigure and spring-shell-test-autoconfigure - Backport #948 - Fixes #950
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022 the original author or authors.
|
||||
* Copyright 2022-2023 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.
|
||||
@@ -47,6 +47,7 @@ public class ManagementConfigurationPlugin implements Plugin<Project> {
|
||||
PluginContainer plugins = project.getPlugins();
|
||||
plugins.withType(JavaPlugin.class, (javaPlugin) -> {
|
||||
configurations.getByName(JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME).extendsFrom(management);
|
||||
configurations.getByName(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME).extendsFrom(management);
|
||||
});
|
||||
plugins.withType(JavaTestFixturesPlugin.class, (javaTestFixturesPlugin) -> {
|
||||
configurations.getByName("testFixturesCompileClasspath").extendsFrom(management);
|
||||
|
||||
@@ -11,4 +11,5 @@ dependencies {
|
||||
implementation project(':spring-shell-standard')
|
||||
implementation project(':spring-shell-standard-commands')
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
||||
}
|
||||
|
||||
@@ -18,4 +18,5 @@ dependencies {
|
||||
optional 'org.assertj:assertj-core'
|
||||
optional 'org.junit.jupiter:junit-jupiter-api'
|
||||
testImplementation 'org.awaitility:awaitility'
|
||||
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user