Skip to content

Move task defaults into build logic plugins#14856

Draft
maksym-moroz wants to merge 1 commit into
signalapp:mainfrom
maksym-moroz:gradle/move-root-task-conventions
Draft

Move task defaults into build logic plugins#14856
maksym-moroz wants to merge 1 commit into
signalapp:mainfrom
maksym-moroz:gradle/move-root-task-conventions

Conversation

@maksym-moroz

@maksym-moroz maksym-moroz commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Register build-logic conventions as binary plugins instead of precompiled scripts.
  • Add a dedicated conventionPlugins version catalog for in-repo convention plugin aliases.
  • Move shared Javadoc/Test defaults into signal-build-task-conventions and apply that convention through existing conventions or explicit catalog aliases.
  • Keep build-logic implementation details internal/private where Gradle allows it.

Notes

  • Existing dependency-verification project traversal is unchanged; this only removes the root Javadoc/Test cross-configuration.

Comment thread build.gradle.kts
Comment on lines -51 to -64
subprojects {
if (JavaVersion.current().isJava8Compatible) {
allprojects {
tasks.withType<Javadoc> {
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
}
}
}

tasks.withType<Test>().configureEach {
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 4).coerceAtLeast(1)
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the main win. There are a lot of cross-configurations in the repo and it's not feasible to address them in one sweep but it's possible to lessen the amount gradually, decouple the structure to get parallel compilations gains and be ready to move to isolated builds upcoming Gradle feature

@maksym-moroz
maksym-moroz force-pushed the gradle/move-root-task-conventions branch from c8788f2 to 4374a3c Compare June 27, 2026 17:23
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