gradle-convention

Standardizes Gradle builds for Kotlin and Spring Boot multi-module projects with caching and parallel execution.

1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/iceflower/opencode-agents-and-skills --skill gradle-convention
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gradle-convention
Source: https://github.com/iceflower/opencode-agents-and-skills/tree/main/skills/gradle-convention
Command: npx skills add https://github.com/iceflower/opencode-agents-and-skills --skill gradle-convention

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the inconsistency and complexity in Gradle build configurations, especially for multi-module Kotlin and Spring Boot projects, by providing a standardized and maintainable approach.

Core Features & Use Cases

  • Project Structure: Enforces a clear, modular project layout (modules/app, modules/domain, etc.).
  • Version Catalog: Centralizes dependency management in libs.versions.toml for consistency and easy updates.
  • Convention Plugins: Extracts common build logic into buildSrc for reusability across modules.
  • Build Optimization: Configures Gradle properties for parallel execution and caching.
  • Use Case: Ensure all new Spring Boot microservices adhere to the same build best practices, simplifying onboarding and reducing build-related errors.

Quick Start

Apply the standard Gradle conventions to the project by configuring the root build.gradle.kts file.

Frequently Asked Questions about gradle-convention

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Gradle build configurations for Kotlin and Spring Boot multi-module projects?

To standardize Gradle build configurations for Kotlin and Spring Boot multi-module projects, you can enforce a modular project structure, use version catalogs for centralized dependency management, and apply convention plugins to extract common build logic for consistency.

What is the best way to manage dependencies consistently across multiple Gradle modules?

The best way to manage dependencies consistently across multiple Gradle modules is by centralizing them in a version catalog file like 'libs.versions.toml', which ensures consistent dependency declarations and simplifies easy updates across the entire project.

How do I extract common Gradle build logic for reuse across different Spring Boot microservices?

You can extract common Gradle build logic for reuse across different Spring Boot microservices by developing convention plugins in the 'buildSrc' directory, allowing you to share standardized build configurations and reduce build-related errors.

Can I optimize Gradle build performance for Kotlin projects through parallel execution and caching?

Yes, you can optimize Gradle build performance for Kotlin projects by configuring specific Gradle properties to enable parallel execution and build caching, which significantly speeds up the build process for multi-module projects.

Does this Gradle convention approach enforce a specific project structure for Spring Boot applications?

Yes, this Gradle convention approach enforces a clear, modular project layout for Spring Boot applications, utilizing directories like 'modules/app' and 'modules/domain' to ensure all new microservices adhere to the same build best practices and simplify onboarding.