I've been wanting to make some gradle plugins for fun for a while and was wondering if anyone has a tutorial on it or knows how to do it because whenever I try I usually cannot find the dependencies
I've been wanting to make some gradle plugins for fun for a while and was wondering if anyone has a tutorial on it or knows how to do it because whenever I try I usually cannot find the dependencies
5 Comments
cargo@kbin.social · 4 pts · 3y
This guide is pretty good.
https://www.baeldung.com/gradle-create-plugin
RandomDevOpsDude@programming.dev · 2 pts · 3y
In the most basic form, sample Gradle plugin
Then see the baeldung article cargo shared
RightAmygdala@lemmy.world · 1 pts · 3y
This guy has nice tutorials on writing Gradle plugins:
https://www.youtube.com/@TomGregoryTech
yaaaaayPancakes@lemmy.world · 1 pts · 3y
Make sure that you join the Gradle community slack - https://gradle-community.slack.com/
There's a channel there for plugin development. I got some good help there when I was first diving into plugin development.
wakingrufus@programming.dev · 1 pts · 3y
The key is to use the
kotlin-dslplugin in your project. That gives you all the setup you should need, except publishing. https://docs.gradle.org/current/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin