mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-29 21:59:02 +00:00
Fix attribute matching when populating int test Maven repository
See gh-49396
This commit is contained in:
+2
@@ -165,6 +165,8 @@ public class MavenPluginPlugin implements Plugin<Project> {
|
||||
repositoryContents.extendsFrom(
|
||||
project.getConfigurations().getByName(JavaPlugin.RUNTIME_CLASSPATH_CONFIGURATION_NAME),
|
||||
project.getConfigurations().getByName("mavenRepository"));
|
||||
repositoryContents.attributes((attributes) -> attributes.attribute(DocsType.DOCS_TYPE_ATTRIBUTE,
|
||||
project.getObjects().named(DocsType.class, "maven-repository")));
|
||||
repositoryContents.setCanBeConsumed(false);
|
||||
TaskProvider<ResolvedConfigurationMavenRepository> populateMavenRepository = project.getTasks()
|
||||
.register("populateResolvedDependenciesMavenRepository", ResolvedConfigurationMavenRepository.class,
|
||||
|
||||
Reference in New Issue
Block a user