mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-27 17:10:22 -04:00
Fix DRA dependenciesInfo task dependency resolution (#129209)
This commit is contained in:
parent
1d9b0a6009
commit
1e13409049
2 changed files with 10 additions and 0 deletions
|
@ -15,9 +15,13 @@ import org.gradle.api.Plugin;
|
|||
import org.gradle.api.Project;
|
||||
import org.gradle.api.artifacts.Configuration;
|
||||
import org.gradle.api.attributes.Category;
|
||||
import org.gradle.api.attributes.Usage;
|
||||
import org.gradle.api.plugins.JavaPlugin;
|
||||
|
||||
public class DependenciesInfoPlugin implements Plugin<Project> {
|
||||
|
||||
public static String USAGE_ATTRIBUTE = "DependenciesInfo";
|
||||
|
||||
@Override
|
||||
public void apply(final Project project) {
|
||||
project.getPlugins().apply(CompileOnlyResolvePlugin.class);
|
||||
|
@ -43,6 +47,9 @@ public class DependenciesInfoPlugin implements Plugin<Project> {
|
|||
)
|
||||
);
|
||||
|
||||
dependenciesInfoFilesConfiguration.attributes(
|
||||
attributes -> attributes.attribute(Usage.USAGE_ATTRIBUTE, project.getObjects().named(Usage.class, USAGE_ATTRIBUTE))
|
||||
);
|
||||
project.getArtifacts().add("dependenciesInfoFiles", depsInfo);
|
||||
|
||||
}
|
||||
|
|
|
@ -31,6 +31,9 @@ configurations {
|
|||
attributes {
|
||||
attribute(Category.CATEGORY_ATTRIBUTE, project.getObjects().named(Category.class, Category.DOCUMENTATION))
|
||||
}
|
||||
attributes {
|
||||
attribute(Usage.USAGE_ATTRIBUTE, project.getObjects().named(Usage.class, DependenciesInfoPlugin.USAGE_ATTRIBUTE))
|
||||
}
|
||||
}
|
||||
featuresMetadata {
|
||||
attributes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue