Skip to content

Commit 3aa7145

Browse files
committed
Fix attribute matching when populating int test Maven repository
See gh-49396
1 parent 66554ec commit 3aa7145

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/MavenPluginPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ private void addPopulateIntTestMavenRepositoryTask(Project project) {
165165
repositoryContents.extendsFrom(
166166
project.getConfigurations().getByName(JavaPlugin.RUNTIME_CLASSPATH_CONFIGURATION_NAME),
167167
project.getConfigurations().getByName("mavenRepository"));
168+
repositoryContents.attributes((attributes) -> attributes.attribute(DocsType.DOCS_TYPE_ATTRIBUTE,
169+
project.getObjects().named(DocsType.class, "maven-repository")));
168170
repositoryContents.setCanBeConsumed(false);
169171
TaskProvider<ResolvedConfigurationMavenRepository> populateMavenRepository = project.getTasks()
170172
.register("populateResolvedDependenciesMavenRepository", ResolvedConfigurationMavenRepository.class,

0 commit comments

Comments
 (0)