jk1 / Gradle-License-Report

A plugin for generating reports about the licenses of third party software using Gradle
Other
328 stars 99 forks source link

Gradle 8/9 deprecation warnings on root project for multi-project builds #225

Open chadlwilson opened 3 years ago

chadlwilson commented 3 years ago

When running on a multi-project setup and generating for the root project, there are current deprecation warnings on Gradle 7.3 which will likely need to be addressed/worked around before Gradle 8.

> Task :generateLicenseReport
Resolution of the configuration :subproject-1:runtimeClasspath was attempted from a context different than the project context. Have a look at the documentation to understand why this is a problem and how it can be resolved. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. See https://docs.gradle.org/7.3/userguide/viewing_debugging_dependencies.html#sub:resolving-unsafe-configuration-resolution-errors for more details.

Just logging here to track possible workarounds. I'm not sure at this stage if it's to do with anything particular in our setup, as we do have some specific configuration being applied. https://github.com/gocd/gocd/blob/87abb3057b3fb11a2f594232dccc8b760f66364f/build.gradle#L358-L377

chadlwilson commented 1 year ago

It seems these warnings did not actually break anything in Gradle 8 (as of 8.1.1) and now still issue warnings for Gradle 9.