Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Jul 21, 2025

Comment on lines +167 to +176
val generateLicenseReportEnabled =
gradle.startParameter.taskNames.any { it.equals("generateLicenseReport") }
named("generateLicenseReport").configure {
dependsOn(cleanLicenses)
finalizedBy(":spotlessApply")
// disable licence report generation unless this task is explicitly run
// the files produced by this task are used by other tasks without declaring them as dependency
// which gradle considers an error
enabled = enabled && generateLicenseReportEnabled
}
if (generateLicenseReportEnabled) {
project.parent?.parent?.tasks?.getByName("spotlessMisc")?.dependsOn(named("generateLicenseReport"))
Copy link
Member Author

Choose a reason for hiding this comment

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

this is also copy from upstream

@trask trask marked this pull request as ready for review July 22, 2025 03:49
@trask trask merged commit 4c282cd into microsoft:main Jul 22, 2025
141 checks passed
@trask trask deleted the sync-spotless branch July 22, 2025 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants