this post was submitted on 16 Jun 2023
10 points (100.0% liked)

Kotlin

618 readers
2 users here now

Kotlin is a statically typed programming language for the JVM, Android, JavaScript, and native.

Subreddit rules:

Resources:

founded 1 year ago
MODERATORS
 

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

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago
[–] [email protected] 2 points 1 year ago

In the most basic form, sample Gradle plugin

Then see the baeldung article cargo shared

[–] RightAmygdala 1 points 1 year ago

This guy has nice tutorials on writing Gradle plugins:

https://www.youtube.com/@TomGregoryTech

[–] yaaaaayPancakes 1 points 1 year ago

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.

[–] [email protected] 1 points 1 year ago

The key is to use the kotlin-dsl plugin 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