File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/main/java/org/gradlex/javamodule/moduleinfo Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ public class PublishedMetadata implements Serializable {
7575 });
7676 }
7777
78+ @ SuppressWarnings ({"UnstableApiUsage" , "unchecked" })
7879 private List <String > componentVariant (Provider <String > versionsProvidingConfiguration , Project project , String usage ) {
7980 Configuration versionsSource ;
8081 if (versionsProvidingConfiguration .isPresent ()) {
@@ -90,7 +91,6 @@ private List<String> componentVariant(Provider<String> versionsProvidingConfigur
9091 singleComponentVariantResolver .shouldResolveConsistentlyWith (versionsSource );
9192 versionsSource .getAttributes ().keySet ().forEach (a -> {
9293 @ SuppressWarnings ("rawtypes" ) Attribute untypedAttributeKey = a ;
93- //noinspection unchecked
9494 singleComponentVariantResolver .getAttributes ().attribute (untypedAttributeKey , requireNonNull (versionsSource .getAttributes ().getAttribute (a )));
9595 });
9696 singleComponentVariantResolver .getAttributes ().attribute (USAGE_ATTRIBUTE , project .getObjects ().named (Usage .class , usage ));
You can’t perform that action at this time.
0 commit comments