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

DGP: set cacheRoot using convention(), not set() #2983

Merged
merged 1 commit into from Apr 25, 2023

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Apr 25, 2023

This is a fix for runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin

By using set() this can override any configuration done in user scripts, but before the configureEach{} block is evaluated. convention() means that even if configureEach{} runs later, it won't override any previous set().

Unfortunately there's no clean way to set the convention of a DirectoryProperty gradle/gradle#23708, hence the weird syntax.

Copy link
Member

@IgnatBeresnev IgnatBeresnev left a comment

Choose a reason for hiding this comment

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

👍 👍

@IgnatBeresnev IgnatBeresnev merged commit 609c546 into Kotlin:master Apr 25, 2023
7 checks passed
@aSemy aSemy deleted the patch-1 branch April 25, 2023 21:35
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.

None yet

2 participants