Skip to content

Commit 320c9b2

Browse files
committed
Add spring-configuration-metadata
- Adding boot's annotation processor to spring-shell-autoconfigure and spring-shell-test-autoconfigure - Fixes #948
1 parent bfde7c7 commit 320c9b2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

buildSrc/src/main/java/org/springframework/shell/gradle/ManagementConfigurationPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 the original author or authors.
2+
* Copyright 2022-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -47,6 +47,7 @@ public void apply(Project project) {
4747
PluginContainer plugins = project.getPlugins();
4848
plugins.withType(JavaPlugin.class, (javaPlugin) -> {
4949
configurations.getByName(JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME).extendsFrom(management);
50+
configurations.getByName(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME).extendsFrom(management);
5051
});
5152
plugins.withType(JavaTestFixturesPlugin.class, (javaTestFixturesPlugin) -> {
5253
configurations.getByName("testFixturesCompileClasspath").extendsFrom(management);

spring-shell-autoconfigure/spring-shell-autoconfigure.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ dependencies {
1111
implementation project(':spring-shell-standard')
1212
implementation project(':spring-shell-standard-commands')
1313
testImplementation 'org.springframework.boot:spring-boot-starter-test'
14+
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
1415
}

spring-shell-test-autoconfigure/spring-shell-test-autoconfigure.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ dependencies {
1818
optional 'org.assertj:assertj-core'
1919
optional 'org.junit.jupiter:junit-jupiter-api'
2020
testImplementation 'org.awaitility:awaitility'
21+
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
2122
}

0 commit comments

Comments
 (0)