gradle-init-scripts

Manage machine-wide Gradle init scripts and enterprise plugin hooks.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/ClankerGuru/opsx --skill gradle-init-scripts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gradle-init-scripts
Source: https://github.com/ClankerGuru/opsx/tree/main/cli/src/main/resources/content/skills/gradle-init-scripts
Command: npx skills add https://github.com/ClankerGuru/opsx --skill gradle-init-scripts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gradle init scripts are a critical but often scattered mechanism for machine-wide configuration and plugin behavior. This skill consolidates and documents the discovery path, loading order, and enterprise use cases to ensure consistent behavior across environments.

Core Features & Use Cases

  • Centralized management of Gradle init scripts and plugin hooks across machines
  • Clear guidance on discovery locations (CLI, user home, init.d directories) and script ordering
  • Support for enterprise scenarios with beforeSettings, settingsEvaluated, beforeProject callbacks, and plugin configuration

Quick Start

Copy the Gradle init scripts into the target ~/.gradle/init.d directory and run Gradle with the desired init script to apply the settings.

Frequently Asked Questions about gradle-init-scripts

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

FAQPage Schema
How do I centralize Gradle init scripts across multiple developer workstations?

Centralize Gradle init scripts by copying them into the target ~/.gradle/init.d directory. This ensures consistent machine-wide configuration and predictable plugin behavior across all developer workstations and multi-repo environments.

What is the discovery order for Gradle init scripts in CI pipelines?

The Gradle init scripts discovery order spans CLI inputs, the user home directory, and the init.d directory. Capturing this loading order ensures predictable initialization behavior across multi-repo CI pipelines and enterprise environments.

Can I use Gradle init scripts to manage enterprise plugin hooks consistently?

Yes, Gradle init scripts support enterprise plugin hooks through beforeSettings, settingsEvaluated, and beforeProject callbacks. This captures the required lifecycle points to ensure consistent plugin configuration across machines.

How does the settingsEvaluated callback work in Gradle build automation?

The settingsEvaluated callback is a Gradle lifecycle point triggered after settings configuration is complete. Using it within init scripts allows you to apply enterprise plugin hooks and standardized configuration before project evaluation begins.

What's the best way to standardize machine-wide Gradle configuration for build automation?

The best way to standardize machine-wide Gradle configuration is consolidating init scripts into a single managed directory. This captures the discovery path and script ordering to ensure predictable initialization across all environments.

Why does my Gradle init script behavior differ between local workstations and CI pipelines?

Gradle init script behavior differs across environments due to scattered discovery locations and inconsistent script ordering. Centralizing the init scripts and documenting the loading path ensures predictable initialization behavior on both workstations and CI pipelines.