Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply license gradle plugin #13535

Open
wants to merge 14 commits into
base: 7.0.x
Choose a base branch
from
Open

apply license gradle plugin #13535

wants to merge 14 commits into from

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented Jul 4, 2024

This PR applies the Gradle License Plugin. The plugin contributes a gradle task downloadLicenses which generates a license report of every dependencies.

The plugin is applied to subprojects and the root project to get an aggregated report.

./gradlew downloadLicenses
open build/reports/license/license-dependency.html

puneetbehl and others added 5 commits April 30, 2024 16:59
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
… v3.25.10 (#13501)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR applies the [Gradle License Plugin](https://github.com/hierynomus/license-gradle-plugin). The plugin contributes a gradle task `downloadLicenses` which generates a license report of every dependencies.

The plugin is applied to subprojects and the root project to get an aggregated report.

./gradlew downloadLicenses
open build/reports/license/license-dependency.html
@sdelamo sdelamo requested a review from davydotcom July 4, 2024 06:24
@CLAassistant
Copy link

CLAassistant commented Jul 4, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@matrei matrei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent bloating the root build file, could we extract this to a new file, for example: gradle/dependency-licenses.gradle?

@sdelamo
Copy link
Contributor Author

sdelamo commented Jul 17, 2024

To prevent bloating the root build file, could we extract this to a new file, for example: gradle/dependency-licenses.gradle?

@matrei I did that in 9e7b153

@sdelamo sdelamo requested a review from matrei July 17, 2024 07:02
@sdelamo sdelamo changed the base branch from 6.2.x to 7.0.x July 19, 2024 06:06
Copy link
Contributor

@matrei matrei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, now just one more thing I saw (I'm a bit allergic to complex build files):
As we already have an allprojects block in build.gradle, we can apply the gradle/dependency-licenses.gradle file there, so we don't have to do it in multiple places:

allprojects {
    
    apply from: rootProject.layout.projectDirectory.file('gradle/dependency-licenses.gradle')

    ...
}

gradle/dependency-licenses.gradle Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
@sdelamo sdelamo requested a review from matrei July 19, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

4 participants