.agents/skills/gradle/references/gradle-best-practices.md
This guidance targets framework committers maintaining many repositories and CI pipelines.
Current coverage target: Gradle major line 9.x.
gradle/wrapper/gradle-wrapper.properties).docs.gradle.org/current references as the baseline unless a repository pins a behavior.tasks.register, configureEach) over eager task realization.providers.gradleProperty, providers.environmentVariable, Provider chaining) over imperative reads.--scan) to identify config cache/caching misses and slow paths.subprojects {} mutation.gradle/*.versions.toml catalogs.dependencyInsight.java-library API/implementation boundaries in reusable modules to minimize downstream compile classpaths.micronautBuild settings extension is the convention, prefer importMicronautCatalog() / importMicronautCatalog("<alias>") over one-off dependency-management wiring.javaVersion and test JVM version strategy explicit in build extension configuration.check workflows../gradlew dependencyInsight --configuration compileClasspath --dependency io.micronaut:micronaut-core
./gradlew :<module>:check --stacktrace
./gradlew check