Skip to content

Add support for Gradle 7 configurations

Brian Wald requested to merge ops/gradle-7x-support into main

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?

Edited by Oscar Tovar

Merge request reports