gradle-dependency-injection
CommunityAccelerate Gradle with dependency injection.
Software Engineering#gradle#dependency-injection#plugin-development#configuration-cache#build-services#task-injection
AuthorClankerGuru
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Gradle's DI container enables tasks, plugins, extensions, and build services to receive services like ExecOperations and ObjectFactory through injection. This eliminates the need to reach into the Project at execution time, improving configuration-cache compatibility and making builds more deterministic.
Core Features & Use Cases
- @Inject-based injection: Inject core services into tasks and extensions to decouple code from the Project and promote CC-safe patterns.
- Service catalog exposure: Provide access to common services (ObjectFactory, ProjectLayout, ExecOperations, FileSystemOperations, BuildService) across tasks and plugins to simplify configuration.
- Build-service patterns: Use BuildService and related registries to share state and resources across a build in a safe, CC-friendly way.
Quick Start
Configure a simple Gradle task that receives ExecOperations via @Inject and uses it to run a shell command.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: gradle-dependency-injection Download link: https://github.com/ClankerGuru/opsx/archive/main.zip#gradle-dependency-injection Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.