Skip to content

Avoid configuring project not needed#10397

Merged
bric3 merged 1 commit into
masterfrom
bdu/configure-on-demand
Jan 19, 2026
Merged

Avoid configuring project not needed#10397
bric3 merged 1 commit into
masterfrom
bdu/configure-on-demand

Conversation

@bric3

@bric3 bric3 commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

Toggle on Configure On Demand to avoid configuration of unneeded projects

https://docs.gradle.org/current/userguide/configuration_on_demand.html

Motivation

Faster tooling.

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@bric3 bric3 requested a review from a team as a code owner January 18, 2026 20:35
@bric3 bric3 requested a review from dougqh January 18, 2026 20:35
@bric3 bric3 added type: enhancement Enhancements and improvements tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling labels Jan 18, 2026

@PerfectSlayer PerfectSlayer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👏 praise: ‏Nice! Any downside to be aware of?

@bric3

bric3 commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

@PerfectSlayer, as far as I know none.

One can always request to have full configuration with this Gradle command flag: --no-configure-on-demand.

This is unscientific, but on a project that already had every relevant files compiled, and run at least once before:

Without configuration on demand it executes in 3-4s

./gradlew :dd-java-agent:shadowJar :dd-trace-api:jar :dd-trace-ot:shadowJar --configure-on-demand

Without configuration on demand it executes in 13-14s

./gradlew :dd-java-agent:shadowJar :dd-trace-api:jar :dd-trace-ot:shadowJar --no-configure-on-demand

I think this can help in other cases. That said, I couldn't test all combinations especially in the IDE on every projects, so I want to communicate this change to let contributors know about it and report related issues if any.

@bric3 bric3 merged commit 2d93a9d into master Jan 19, 2026
573 of 574 checks passed
@bric3 bric3 deleted the bdu/configure-on-demand branch January 19, 2026 11:48
@github-actions github-actions Bot added this to the 1.59.0 milestone Jan 19, 2026
@bric3 bric3 changed the title build: Avoid configuring project not needed Avoid configuring project not needed Jan 19, 2026
bric3 added a commit that referenced this pull request Jan 20, 2026
…0406)

* chore: Disable the configure on demand in CI, as it seems to skip tests

* chore: Revert the default configure-on-demand trick as it breaks running single smoke tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: no release notes Changes to exclude from release notes type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants