Here I am, after subscribing a long time a go, got lost in new work, now having a mission tto write a gradle plugin for my job, I just have to say I love you man lol. It slipped out. lol
Just started watching. I've built a basic plugin after reading the official Gradle docs, but it's really hard to tell if I'm doing the right thing. Perhaps your video will save me :)
Hi Venu. Thanks, and very good question! When using the java-gradle-plugin it automatically creates the plugin descriptor file in META-INF during the build. Hence the file doesn't need to be manually added in src/main/resources. Sorry for the confusion. I've updated the sample project accordingly.
could u help to create a gradle plugin tutorial to create java POJO during compile / build time ? (i.e. code generator like how protobuf converts proto files into java classes)
Has anyone experienced that when exporting the plugin to a local repository the gradle.plugin container is not created but it is when exporting it to mavenLocal?
Hi first of all congratulation for your video and sorry for my bad english . I need some of your help :) I want to create a plugin like your one but i would like that in the class "FileDiffPluginFunctionalTest" the file "testFile1.txt" wasn't not create temporanely but it should have benen found inside a directory of my gradle project ( for example : file-diff-plugin-master\examplefile\file\testFile1.txt. ) How can i do? :D
Hi Hashil. There are Gradle plugins for SonarQube (I have videos on this ruclips.net/video/6BTOd0X8UCs/видео.html) and SpotBugs spotbugs.readthedocs.io/en/stable/gradle.html
Yes it does Johnjake. It's not something I've done before but this guide has examples in Groovy and Kotlin docs.gradle.org/current/userguide/custom_plugins.html
Hi Dag. Mostly yes, but there are some minor changes with later Gradle versions e.g. declaring the extension as abstract. You'll find more up-to-date code snippets in the accompanying article tomgregory.com/introduction-to-gradle-plugins/
Here I am, after subscribing a long time a go, got lost in new work, now having a mission tto write a gradle plugin for my job, I just have to say I love you man lol. It slipped out. lol
I am a beginner at writing gradle plugins and your apt explanation helped me understand the concepts in detail. Thanks for sharing this tutorial. :)
Just started watching. I've built a basic plugin after reading the official Gradle docs, but it's really hard to tell if I'm doing the right thing. Perhaps your video will save me :)
I know the feeling! How did I do?
@@TomGregoryTech It was good! Definitely validated the fundamentals for me! Nice to hear some real English for once on RUclips too :P
This video is absolutely fantastic I am subbed up and very excited about finding this channel
Thanks Matt. And welcome.
Well presented.
Question, Why do I provide impementation class twice, in 'META-INF' and as well as in build.gradle
Hi Venu. Thanks, and very good question!
When using the java-gradle-plugin it automatically creates the plugin descriptor file in META-INF during the build. Hence the file doesn't need to be manually added in src/main/resources.
Sorry for the confusion. I've updated the sample project accordingly.
thanks tom, gradle is so vast it's hard to understand where to even start. gradle resources are lacking badly.
those drums 😂
could u help to create a gradle plugin tutorial to create java POJO during compile / build time ? (i.e. code generator like how protobuf converts proto files into java classes)
Great video! Thanks!
@tom Gregory tech
How did you import the property at 10:05?
The keyboard shortcut is Alt + Enter on Windows.
Has anyone experienced that when exporting the plugin to a local repository the gradle.plugin container is not created but it is when exporting it to mavenLocal?
Amazing Tutorial!!
Glad it was helpful!
Hi first of all congratulation for your video and sorry for my bad english . I need some of your help :)
I want to create a plugin like your one but i would like that in the class "FileDiffPluginFunctionalTest" the file "testFile1.txt" wasn't not create temporanely but it should have benen found inside a directory of my gradle project ( for example : file-diff-plugin-master\examplefile\file\testFile1.txt. ) How can i do? :D
Hi Jacopo. I haven't tried this before but I imagine you can just use the Java File class e.g. File file = new File(filePath)
That looks clunky/painful ( ruclips.net/video/F3DF6bQo6jk/видео.html )! Why aren't the Gradle APIs being used instead?
how can we integrate static code analyzer spotbugs(findsecbug) in gradle script.
Hi Hashil. There are Gradle plugins for SonarQube (I have videos on this ruclips.net/video/6BTOd0X8UCs/видео.html) and SpotBugs spotbugs.readthedocs.io/en/stable/gradle.html
hi does it support kotlin for writing plugins ?
Yes it does Johnjake. It's not something I've done before but this guide has examples in Groovy and Kotlin docs.gradle.org/current/userguide/custom_plugins.html
Is this video still relevant?
Hi Dag. Mostly yes, but there are some minor changes with later Gradle versions e.g. declaring the extension as abstract. You'll find more up-to-date code snippets in the accompanying article tomgregory.com/introduction-to-gradle-plugins/
Man your content is great but god damn i cant tolerate that random drumming
You live and learn. At the time, it seemed like SUCH a good idea!