Inside the Gradle DSL
summary
Examines Gradle build scripts for Java projects: common mistakes, best practices, why using allprojects {} is bad, and the role of plugins. Explains how the standard Java plugin works and shows how to write a custom plugin, how dependency scopes like api and implementation work under the hood and how to create custom scopes, and how to reuse build logic to create a custom idiomatic DSL. The session is delivered as a two-part workshop.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 2:31Gradle DSL problems
- 7:08Gradle build cycle
- 10:00Java plugin creation
- 14:00Included build setup
- 16:31First task implementation
- 22:53Task principles
- 31:53Compilation and caching
- 41:26Task dependencies
- 53:28Build customization
- 1:03:29Dependency configurations
- 1:16:53Artifact publishing
- 1:27:01Dependencies resolution
- 1:36:55Build variants management
- 1:42:11Plugin logic extraction
related talks
01h 03mKey Gradle Concepts And Practices
39mGradle + Kotlin: Basics and beyond
01h 59mGradle: Give Your Build Some Love and It Will Return It!
02h 49mGradle: Give Your Build Some Love and It Will Love You Back!
01h 03mPower of Gradle
01h 15mKeeping growing software projects under control with Gradle
43mThe Secrets of the Build Scan Plugin and the internals of Gradle
59mIntelliJ IDEA – The IDE That Speaks Gradle
