-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
According to official gradle docs https://docs.gradle.org/current/userguide/declaring_configurations.html#sec:configuration-flags-roles:
Out of canBeResolved, canBeConsumed and canBeDeclared flags "Configurations should only have one of these flags enabled.". When configurations get created in
smithy-gradle-plugin/smithy-base/src/main/java/software/amazon/smithy/gradle/SmithyBasePlugin.java
Lines 123 to 128 in a770f94
| Configuration smithyBuildConfig = configurations.maybeCreate( | |
| SmithyUtils.getSmithyBuildConfigurationName(sourceSet)); | |
| smithyBuildConfig.setVisible(false); | |
| smithyBuildConfig.setTransitive(true); | |
| smithyBuildConfig.extendsFrom(configurations.getByName(compileOnlyConfigurationName)); | |
| smithyBuildConfig.setDescription("Build-time smithy dependencies for " + sourceSet + "."); |
true (according the gradle's source code).
It feels like smithyBuild configurations should be only marked as canBeResolved and all other flags should be set to false?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels