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
|
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 + "."); |
they don't have these flags configured, which means that by default they have all 3 flags set to
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?
According to official gradle docs https://docs.gradle.org/current/userguide/declaring_configurations.html#sec:configuration-flags-roles:
Out of
canBeResolved,canBeConsumedandcanBeDeclaredflags "Configurations should only have one of these flags enabled.". When configurations get created insmithy-gradle-plugin/smithy-base/src/main/java/software/amazon/smithy/gradle/SmithyBasePlugin.java
Lines 123 to 128 in a770f94
true(according the gradle's source code).It feels like
smithyBuildconfigurations should be only marked ascanBeResolvedand all other flags should be set tofalse?