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.
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?
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)
Hi Hashil. There are Gradle plugins for SonarQube (I have videos on this th-cam.com/video/6BTOd0X8UCs/w-d-xo.html) and SpotBugs spotbugs.readthedocs.io/en/stable/gradle.html
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
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. :)
This video is absolutely fantastic I am subbed up and very excited about finding this channel
Thanks Matt. And welcome.
@tom Gregory tech
How did you import the property at 10:05?
The keyboard shortcut is Alt + Enter on Windows.
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 TH-cam too :P
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.
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?
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)
thanks tom, gradle is so vast it's hard to understand where to even start. gradle resources are lacking badly.
those drums 😂
Great video! Thanks!
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 th-cam.com/video/6BTOd0X8UCs/w-d-xo.html) and SpotBugs spotbugs.readthedocs.io/en/stable/gradle.html
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)
Amazing Tutorial!!
Glad it was helpful!
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
That looks clunky/painful ( th-cam.com/video/F3DF6bQo6jk/w-d-xo.html )! Why aren't the Gradle APIs being used instead?
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!