Skip to content

Lazy Task Registration#832

Open
gallardo wants to merge 1 commit intoalkacon:masterfrom
gallardo:chore/lazy-task-registration-PR2
Open

Lazy Task Registration#832
gallardo wants to merge 1 commit intoalkacon:masterfrom
gallardo:chore/lazy-task-registration-PR2

Conversation

@gallardo
Copy link
Contributor

@gallardo gallardo commented Jan 8, 2026

This PR migrates the task declarations in build.gradle to the modern Task Configuration Avoidance API using tasks.register. This ensures tasks are only configured when they are required for execution.

Changes:

  • Lazy Task Registration: Migrated top-level and dynamic tasks to tasks.register.
  • Improved Dependency Wiring: Updated task dependencies to use lazy resolution, avoiding premature configuration of the task graph.

Justification:

  • Best Practices: Aligns the build with modern Gradle recommendations.
  • Future-proofing: Ensures compatibility with future Gradle versions and internal optimizations like the Configuration Cache.

Verification:

  • Task registration verified via ./gradlew tasks.
  • Build stability confirmed by executing core tasks (e.g., jar, resourcesJar) and verifying their outputs.

@gallardo gallardo marked this pull request as draft January 8, 2026 17:41
@gallardo gallardo force-pushed the chore/lazy-task-registration-PR2 branch from 18d6811 to 37811ec Compare January 8, 2026 17:48
@gallardo gallardo force-pushed the chore/lazy-task-registration-PR2 branch from 37811ec to b31e48d Compare January 8, 2026 17:49
@gallardo gallardo marked this pull request as ready for review January 8, 2026 17:50
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.

1 participant

Comments