~/talk

How to write Gradle plugins (in Kotlin)

Talkat Droidcon Italy 2018 · 2018-04-19..04-20· [kotlin, devops-and-delivery]
links:none on file
slides:none on file

Explains how to implement a real Gradle plugin in Kotlin: creates an extension with enabled and dirs properties, registers a task class with @TaskAction and @OutputFile/@InputFiles annotations, uses Gradle TestKit for functional tests, and wires an always-running helper task to generate a stable input file so up-to-date checks and the build cache work. Example plugin reads and counts lines from given file paths, produces an output file, and demonstrates caching against a local build cache.

AI-written summary · about

  1. 0:00Start
  2. 1:44Agenda
  3. 4:50Example Project
  4. 5:40Gradle Kotlin Dsl
  5. 8:44Hierarchy
  6. 10:16Java Gradle Plugin
  7. 10:49The Gradle Api Dependency
  8. 13:39The Java Gradle Plug-In Development Plug-In
  9. 14:41Implementation Class
  10. 16:18Testing
  11. 17:11Class Pass Method
  12. 19:38Extensions to Gradle
  13. 22:15Recap
  14. 33:36Recap Everything
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.