Gradle Was Hard Until I Learnt This INSANE Secret

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2024

ความคิดเห็น • 84

  • @TomGregoryTech
    @TomGregoryTech  2 หลายเดือนก่อน

    Get started with Gradle by building a real Java project the right way with my FREE Quick-Start Guide 👉 tomgregory.com/gradlequickstart

  • @programmingpython584
    @programmingpython584 2 หลายเดือนก่อน +1

    "gradle build scripts are just code, and you know code", this is the best thing to hear

  • @KevinSheppard
    @KevinSheppard ปีที่แล้ว +21

    I'm a pretty proficient Groovy developer, but what helped me a lot was actually browsing the API doc starting with the Project object. After that it was magic ✨

    • @masterflitzer
      @masterflitzer 8 หลายเดือนก่อน +1

      kotlin dsl is superior

    • @gerdsfargen6687
      @gerdsfargen6687 5 หลายเดือนก่อน

      ​@@masterflitzerit's lazier that's about all.

  • @arziofox
    @arziofox 7 หลายเดือนก่อน +4

    Great video. I will be recommending it whenever someone have issues understanding the groovy syntax in a Gradle project

  • @phoenixshell3772
    @phoenixshell3772 2 หลายเดือนก่อน +1

    I had the same realisation after being android developer for 2 years, not really understanding gradle, life changing. It made me actually realise that all new tech frameworks at the end of the day boil down to "programs" and "code" just different way of implementing it

  • @alanwakeup3344
    @alanwakeup3344 หลายเดือนก่อน

    Coming from .NET, Gradle was pretty intimidating, but this video greatly diminished that. Thank you!

  • @aparfeno
    @aparfeno ปีที่แล้ว +5

    Awesome video!
    Another reason why gradle is so hard is gradle's documentation. It is AWFUL. It is both prolific and completely useless, only serving to make the reader feel confused and stupid.
    Your 5 min video is all a gradle newbie needs because, as you point out, we ARE developers.
    Thank you again!

  • @HellCatLeMaudit
    @HellCatLeMaudit ปีที่แล้ว +2

    I had so much difficulty with gradle's inflexibility that I went back to using "make". I use "make" for my C++ projects anyway so it was a no-brainer.

    • @anonymousgamer2839
      @anonymousgamer2839 8 หลายเดือนก่อน +1

      even makefile may be easier for me, or even the notoriously difficult assembly I can understand.
      But not the horrible way of building an apk form gradle and I was searching it from past 2 years.
      There is no support added for android apk (it says applicaton and never output to apk) while doing gradle init
      There is no easy way to add a damn function in build.gradle file or I don't know how to add new task that builds an apk or it just impossible to build apk using gradle or some crappy tools like android studio must be used that is just a big bloat for me

  • @Veetrill_UKR
    @Veetrill_UKR 8 หลายเดือนก่อน

    Not gonna lie, what I first thought would be a clickbait video, actually turned out to be a crucial piece of wisdom I lacked. Thank you so much!

  • @ShaheenGhiassy
    @ShaheenGhiassy 19 วันที่ผ่านมา +1

    You have to wonder at the benefit of Gradle using hipster syntax.
    Yes, in Groovy you can pass function parameters without parentheses. But how many more devs are confused rather than helped by that syntax?

  • @LeoFuso
    @LeoFuso 6 หลายเดือนก่อน

    God tier video. I'm quite used to Gradle at this point, but I only actually understood what I was doing after trying to build a Plug-in. I encourage you all to try, it's pretty fun and you end up knowing a lot about Gradle in general. Including the Project object.

  • @ddavity
    @ddavity 2 หลายเดือนก่อน

    Simple, concise and well explained. You definitely changed my view on Gradle, thank you!

  • @vivekgupta5749
    @vivekgupta5749 ปีที่แล้ว +2

    Finally, I can say I know how to write build gradle

  • @jroseme
    @jroseme หลายเดือนก่อน

    Pong animation was fire 🔥

  • @ahadgulafridi01
    @ahadgulafridi01 ปีที่แล้ว

    being a perfectionist i was not really satisfied by copy and pasting the different lines in build script. i just used to be so confused. you made life easy thank you!

  • @kitersrefuge7353
    @kitersrefuge7353 2 ปีที่แล้ว +6

    Thanks Tom. Very nicely done. I am old enough to remember the first version of Gradle. At the time, with Maven (and Ant before that) it generated a lot of hope and promise as a replacement to the latter. Unfortunately, that promise never got realized...as the authors mindest imo was/is? convoluted...imagine our disappointment in _actually wishing for Maven back! However, never say never, and your video is a stepping stone to proving myself as being an old fuddy duddy ;=)

  • @damercy
    @damercy ปีที่แล้ว +3

    I'm 1 min into the video and the moment you mention that gradle build script is just code is the insight, it also made me feel confident. For some reason it doesn't feel like so at first sight but you're right. Thank you Tom for helping out this newbie. Subscribed! ❤

  • @MrJoker-ze6bb
    @MrJoker-ze6bb 2 ปีที่แล้ว +6

    please make video on Android Gradle

  • @Akz77977
    @Akz77977 ปีที่แล้ว +1

    i just discovered a gem on youtube.. thanks tom for such insightful video on gradle

  • @michaelperkins1119
    @michaelperkins1119 6 หลายเดือนก่อน +1

    Wow, considering it as code indeed changes a lot. Thank you!

  • @vvanchesa
    @vvanchesa 8 หลายเดือนก่อน

    As someone (relative) new to java and I just saw a bunch of gradle-scripts I never created one by my own.
    Seeing a gradle-script as code and not as a config file, was the missing link for me.
    Until today I always tried to see the syntax like a kind of YML file.
    Thanks for making this short video.

  • @mattchew2203
    @mattchew2203 2 ปีที่แล้ว +3

    Great content, you describe things in such a concise and understandable way. Appreciate you.

  • @l_a_h797
    @l_a_h797 9 หลายเดือนก่อน +1

    Thank you ... this hit some nails on the head for me!

  • @SuryakiranAllu
    @SuryakiranAllu 2 ปีที่แล้ว +3

    simply a must watch gradle tutorial video

  • @systematicpsychologic7321
    @systematicpsychologic7321 ปีที่แล้ว +1

    Solid framing, thank you.

  • @ehippo1
    @ehippo1 ปีที่แล้ว

    This video is from developer for developers. Love it !

  • @sachinwalunjakar8854
    @sachinwalunjakar8854 ปีที่แล้ว +1

    Thank you for making this video.

  • @gnshjgm1989
    @gnshjgm1989 10 หลายเดือนก่อน

    Great content hope you continue to help gradle learning from developer perspective

  • @brucecichowlas4156
    @brucecichowlas4156 ปีที่แล้ว +1

    That IS insightful! Thanks!

  • @MikeVerba
    @MikeVerba ปีที่แล้ว

    At last!! Great explanation - I know code, I can handle Gradle. As simple as that!

  • @driden1987
    @driden1987 ปีที่แล้ว

    This video is great!
    Would've loved this 2 years ago when I dived head first into java at work and had to deal with gradle all the time.
    Eventually, I found my way around this, not without having to read a bit of gradle code.

  • @thiagoalexandremartinsmont4115
    @thiagoalexandremartinsmont4115 2 ปีที่แล้ว +1

    Great content! Congratulations!

  • @MechWhisper
    @MechWhisper ปีที่แล้ว

    Thanks for the insight! It opens up my eyes!

  • @go_better
    @go_better ปีที่แล้ว

    Thanks! That actually makes a lot of sense...

  • @mahoneg
    @mahoneg ปีที่แล้ว

    Thanks great place to start!

  • @mikefischbein3230
    @mikefischbein3230 2 หลายเดือนก่อน

    That was great. Thanks.

  • @dsinghr
    @dsinghr ปีที่แล้ว +1

    Picking up a Gradle upgrade ticket gives me jitters

  • @salmaK20012
    @salmaK20012 10 หลายเดือนก่อน

    You're a life saver!

  • @ChrisAthanas
    @ChrisAthanas ปีที่แล้ว

    Super helpful
    Why is this not told Day one?
    Android has an immense learning curve

  • @st-tube
    @st-tube ปีที่แล้ว

    Very well done!

  • @jdsaravaiya6468
    @jdsaravaiya6468 ปีที่แล้ว +1

    Video starts at 01:48

  • @karthikeyanm9922
    @karthikeyanm9922 ปีที่แล้ว

    Deserves more likes and views !

  • @priyatanudey6104
    @priyatanudey6104 ปีที่แล้ว

    The heart beat moment is like deja vu

  • @leoamato6113
    @leoamato6113 ปีที่แล้ว +1

    thank you

  • @jonathankee9322
    @jonathankee9322 ปีที่แล้ว +1

    3:48 was my same reaction looking at {} syntax for Groovy or Kotlin for the first time hahaha, it's was weird because I only know Java

  • @it-series-music
    @it-series-music 2 ปีที่แล้ว

    Amazing video🔥🔥🔥

  • @rajushingadiya2860
    @rajushingadiya2860 10 หลายเดือนก่อน

    thanks sir

  • @rebok232
    @rebok232 10 หลายเดือนก่อน +1

    I was using intelj templates, until i wanted to have an gradle task to show me updates, that's how i started learning gradle, as an kotlin user, it was kinda easy to learn gradle, cause i'm using gradle kotlin dsl

  • @aliceb.8615
    @aliceb.8615 ปีที่แล้ว +2

    Such wonderful acting 😄 But seriously, great job editing and making an easy-to-understand video! Title's super click-batey, but I guess if it works why not use it :shrug:

  • @sohpol
    @sohpol ปีที่แล้ว

    I don't know about you, but even if I didn't know that simple secret, I'd still love Gradle.... BECAUSE IT'S NOT XML! ;)

  • @Emerald214
    @Emerald214 ปีที่แล้ว

    I searched "Gradle sucks" and the result showed your video.

  • @mhdunknown
    @mhdunknown ปีที่แล้ว

    Yeah thinking about in a "it's just code written declaratively with a bunch of callbacks" does open my "third eye" kinda lol.
    Btw, anyone else on Android Studio notice that Groovy DSL gradle doesn't actually show any documentation when you hover over its method? My jaw dropped when I saw the docs in the youtube video, that never appeared to me, not sure if it's an Android Studio bug or maybe I misconfigured the IDE somehow.

  • @shriduttkothari
    @shriduttkothari ปีที่แล้ว

    Thanks bhai 😊

  • @halotroop2288
    @halotroop2288 ปีที่แล้ว +1

    If only the IDE integration actually worked most of the time... In reality you usually get countless warnings that can't be solved and method references that can't be CTRL+Clicked, because they come from a plugin, and the plugin often isn't on the recognized classpath.

    • @halotroop2288
      @halotroop2288 ปีที่แล้ว +1

      I like this video. I hope you have more videos about Gradle because I really need to learn more for my power-user development antics.

  • @masterflitzer
    @masterflitzer 8 หลายเดือนก่อน +1

    kotlin dsl is the way

  • @NexusBaum
    @NexusBaum ปีที่แล้ว +4

    Well Maven is even worse in my opinion

  • @adolf7744
    @adolf7744 3 หลายเดือนก่อน

    Oh yes! Code is made out of code!

  • @build-things
    @build-things ปีที่แล้ว

    Insightful video. I still think gradle has possibly the worst documentation iv ever tried to read though

  • @mohamedyoussef8835
    @mohamedyoussef8835 ปีที่แล้ว

    Awesome video +++++++++++++++++ 😀

  • @flyinghorse2739
    @flyinghorse2739 ปีที่แล้ว

    Can I place my .java file within /src/main/java

  • @davidtico1613
    @davidtico1613 ปีที่แล้ว

    Perdona, pero no me entero de nada, flatDir no me funciona y tampoco tu explicación, gracias

  • @Chris-wf9mg
    @Chris-wf9mg 21 วันที่ผ่านมา

    Groovy gradle? Huh.

  • @alphabee8171
    @alphabee8171 11 หลายเดือนก่อน

    i know code.

  • @jopadjr
    @jopadjr ปีที่แล้ว

    571st...Thanks Tom

  • @lasindunuwanga5292
    @lasindunuwanga5292 ปีที่แล้ว

    damn it is a language... a very wierd one.. I never ever thought thought implementation, id and etc are function calls... 😂😂😂😂

  • @donwald3436
    @donwald3436 ปีที่แล้ว

    lol if you think gradle is hard, have a look at sbt.

  • @craigstadlock
    @craigstadlock 2 ปีที่แล้ว +1

    TL;DR.. Gradle is code (duh) and read the Gradle docs. How about mabybe explaning why this might be useful, like making reusable helper functions in your script.

    • @mahee96
      @mahee96 ปีที่แล้ว

      it obviously is DSL (Domain specific lanfuage) and the language must be a turing complete one

  • @glowiboi
    @glowiboi 3 หลายเดือนก่อน

    i dont know code, gradle is garbage

  • @sciab3674
    @sciab3674 2 หลายเดือนก่อน

    nice one thanks

  • @dustmarcus
    @dustmarcus 2 ปีที่แล้ว +1

    Great.
    You could also explain the "configuration { myNewConfig }" magic. (NamedDomain..., create, getAt, getByName)

  • @rajushingadiya2860
    @rajushingadiya2860 10 หลายเดือนก่อน

    thanks sir

    • @TomGregoryTech
      @TomGregoryTech  10 หลายเดือนก่อน

      You're very welcome!