Introduction to writing Gradle plugins

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 30

  • @bennyswayofficial
    @bennyswayofficial Год назад

    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

  • @ajinkyadande731
    @ajinkyadande731 Год назад +1

    I am a beginner at writing gradle plugins and your apt explanation helped me understand the concepts in detail. Thanks for sharing this tutorial. :)

  • @rewolfer
    @rewolfer 4 года назад +3

    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 :)

    • @TomGregoryTech
      @TomGregoryTech  4 года назад +1

      I know the feeling! How did I do?

    • @rewolfer
      @rewolfer 4 года назад +1

      @@TomGregoryTech It was good! Definitely validated the fundamentals for me! Nice to hear some real English for once on RUclips too :P

  • @matt-g-recovers
    @matt-g-recovers 3 года назад +1

    This video is absolutely fantastic I am subbed up and very excited about finding this channel

  • @venuvemula1603
    @venuvemula1603 4 года назад +3

    Well presented.
    Question, Why do I provide impementation class twice, in 'META-INF' and as well as in build.gradle

    • @TomGregoryTech
      @TomGregoryTech  4 года назад +1

      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.

  • @duckydude20
    @duckydude20 11 месяцев назад +1

    thanks tom, gradle is so vast it's hard to understand where to even start. gradle resources are lacking badly.
    those drums 😂

  • @kahlilkahlil9172
    @kahlilkahlil9172 Год назад

    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)

  • @oleksandrmelnykov4196
    @oleksandrmelnykov4196 2 года назад +1

    Great video! Thanks!

  • @toplisttv1289
    @toplisttv1289 4 месяца назад

    @tom Gregory tech
    How did you import the property at 10:05?

    • @TomGregoryTech
      @TomGregoryTech  4 месяца назад

      The keyboard shortcut is Alt + Enter on Windows.

  • @strok777
    @strok777 Год назад

    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?

  • @nidhidubey8293
    @nidhidubey8293 4 года назад

    Amazing Tutorial!!

  • @jacopo4-905
    @jacopo4-905 3 года назад

    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

    • @TomGregoryTech
      @TomGregoryTech  3 года назад

      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)

  • @pixelPlex
    @pixelPlex 3 года назад +3

    That looks clunky/painful ( ruclips.net/video/F3DF6bQo6jk/видео.html )! Why aren't the Gradle APIs being used instead?

  • @hashilbh5654
    @hashilbh5654 3 года назад

    how can we integrate static code analyzer spotbugs(findsecbug) in gradle script.

    • @TomGregoryTech
      @TomGregoryTech  3 года назад +1

      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

  • @johnjake2000
    @johnjake2000 4 года назад

    hi does it support kotlin for writing plugins ?

    • @TomGregoryTech
      @TomGregoryTech  4 года назад

      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

  • @bmtomb3i05
    @bmtomb3i05 2 года назад

    Is this video still relevant?

    • @TomGregoryTech
      @TomGregoryTech  2 года назад

      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/

  • @aabhishek4911
    @aabhishek4911 2 года назад +1

    Man your content is great but god damn i cant tolerate that random drumming

    • @TomGregoryTech
      @TomGregoryTech  2 года назад +2

      You live and learn. At the time, it seemed like SUCH a good idea!