Add support for Gradle 7 configurations
What does this MR do?
Gradle version 7.x dependencies are not handled properly with license-gradle-plugin 0.15.0
. It does not return any licenses that utilize the implementation
scope (compile
is deprecated). For this to work with Gradle 7.x projects, we need to update to 0.16.1
and configure the downloadLicenses
task.
downloadLicenses {
dependencyConfiguration = 'runtimeClasspath'
}
dependencyConfiguration
is required for it to properly scope dependencies using implementation
and testImplementation
in the gradle.build
file.
i.e.,
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-websocket'
}
What are the relevant issue numbers?
gitlab-org/gitlab#341222 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Job definition example -
CI Templates (to be removed) -
Vendored CI Templates (also in CE) -
Ensure that all of the ENV vars supported are propagated to Docker containers upon docker run
in job definitions
-
-
Conforms to the code review guidelines -
Security reports checked/validated by reviewer
Edited by Oscar Tovar