Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adam-enko
Copy link
Member

Currently the plugin-includedBuild projects build-logic and build-settings-logic do not have Build Cache enabled. This hurts build performance, and Dokka gets dinged with a build scan warning.

The build cache configuration of the root build differs from the build cache configuration of the early evaluated ':build-logic', ':build-settings-logic' included builds.

This PR shares the build cache config in all projects, improving build performance.

Convention plugin workaround.

In build-settings-logic there's a chicken-and-egg situation: a project can't apply its own convention plugin to itself.

Instead, I've applied a hack to apply the build cache config as a script plugin. (Space also applies the same quick-fix.)

@adam-enko adam-enko requested review from dkrasnoff and whyoleg March 8, 2024 14:32
@adam-enko adam-enko added the infrastructure Everything related to builds tools, CI configurations and project tooling label Mar 8, 2024
Copy link
Collaborator

@whyoleg whyoleg left a comment

Choose a reason for hiding this comment

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

LGTM, even if it looks strange :)

May be some day Gradle will provide better out-of-the-box integration for included builds, which are inside of the project to avoid all those beautiful hacks...

… here)

The build scan URL is configurable because it used to control whether someone could opt in/out of build scans, but since then an explicit option has been added, so it makes sense to hardcode the build scan url.
@adam-enko adam-enko self-assigned this Mar 8, 2024
@adam-enko adam-enko merged commit 43b2201 into master Mar 12, 2024
@adam-enko adam-enko deleted the fix/share-included-build-cache-config branch March 12, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Everything related to builds tools, CI configurations and project tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants