[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:
committed by
Space Team
parent
5e51826050
commit
28dad289b3
-3
@@ -54,9 +54,6 @@ abstract class CompilationDatabaseExtension @Inject constructor(private val proj
|
|||||||
description = "Compilation Database dependencies"
|
description = "Compilation Database dependencies"
|
||||||
isCanBeConsumed = false
|
isCanBeConsumed = false
|
||||||
isCanBeResolved = false
|
isCanBeResolved = false
|
||||||
attributes {
|
|
||||||
attribute(CppUsage.USAGE_ATTRIBUTE, project.objects.named(CppUsage.COMPILATION_DATABASE))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ fun Project.createGradlePluginVariant(
|
|||||||
}
|
}
|
||||||
|
|
||||||
configurations.configureEach {
|
configurations.configureEach {
|
||||||
if (this@configureEach.name.startsWith(variantSourceSet.name)) {
|
if (this@configureEach.name.startsWith(variantSourceSet.name) && (isCanBeResolved || isCanBeConsumed)) {
|
||||||
attributes {
|
attributes {
|
||||||
attribute(
|
attribute(
|
||||||
GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE,
|
GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE,
|
||||||
|
|||||||
Reference in New Issue
Block a user