[Build] Remove attributes setup for the dependency scope configurations

This behaviour makes no sense and is deprecated: https://docs.gradle.org/8.4/userguide/upgrading_version_8.html#deprecated_configuration_usage
^KTI-1473 In Progress
This commit is contained in:
Alexander.Likhachev
2023-11-15 20:16:12 +01:00
committed by Space Team
parent 5e51826050
commit 28dad289b3
2 changed files with 1 additions and 4 deletions
@@ -54,9 +54,6 @@ abstract class CompilationDatabaseExtension @Inject constructor(private val proj
description = "Compilation Database dependencies"
isCanBeConsumed = false
isCanBeResolved = false
attributes {
attribute(CppUsage.USAGE_ATTRIBUTE, project.objects.named(CppUsage.COMPILATION_DATABASE))
}
}
/**
@@ -496,7 +496,7 @@ fun Project.createGradlePluginVariant(
}
configurations.configureEach {
if (this@configureEach.name.startsWith(variantSourceSet.name)) {
if (this@configureEach.name.startsWith(variantSourceSet.name) && (isCanBeResolved || isCanBeConsumed)) {
attributes {
attribute(
GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE,