Gradle Was Hard Until I Learnt This INSANE Secret

  Рет қаралды 45,896

Tom Gregory Tech

Tom Gregory Tech

Күн бұрын

Gradle is a notoriously hard build tool to get to grips with. I struggled for a long time, never understanding the build script enough to do more than adding a simple dependency. Then I made a discovery that changed everything.
Once I share this insight with you, you'll gain a deep understanding of what the Gradle build script is and how what you write there interacts with Gradle. You'll have the tools to figure out for yourself what you can do in the build script, helping you work more effectively in your own projects.
🚀 FREE QUICK-START GRADLE GUIDE tomgregory.com/gradlequickstart
🔥 ULTIMATE GRADLE BUILD BIBLE tomgregory.com/gradlebuildbible
▶️ VIDEO CHAPTERS
What makes Gradle so hard? 0:00
The key insight that changed everything 1:09
What you didn't know about the build script 1:48
A new way to look at the build script 5:01

Пікірлер: 82
@TomGregoryTech
@TomGregoryTech Ай бұрын
Get started with Gradle by building a real Java project the right way with my FREE Quick-Start Guide 👉 tomgregory.com/gradlequickstart
@programmingpython584
@programmingpython584 Ай бұрын
"gradle build scripts are just code, and you know code", this is the best thing to hear
@alanwakeup3344
@alanwakeup3344 25 күн бұрын
Coming from .NET, Gradle was pretty intimidating, but this video greatly diminished that. Thank you!
@arziofox
@arziofox 6 ай бұрын
Great video. I will be recommending it whenever someone have issues understanding the groovy syntax in a Gradle project
@ddavity
@ddavity Ай бұрын
Simple, concise and well explained. You definitely changed my view on Gradle, thank you!
@phoenixshell3772
@phoenixshell3772 Ай бұрын
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
@mattchew2203
@mattchew2203 Жыл бұрын
Great content, you describe things in such a concise and understandable way. Appreciate you.
@Akz77977
@Akz77977 Жыл бұрын
i just discovered a gem on youtube.. thanks tom for such insightful video on gradle
@KevinSheppard
@KevinSheppard Жыл бұрын
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 7 ай бұрын
kotlin dsl is superior
@gerdsfargen6687
@gerdsfargen6687 4 ай бұрын
​@@masterflitzerit's lazier that's about all.
@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.
@gnshjgm1989
@gnshjgm1989 9 ай бұрын
Great content hope you continue to help gradle learning from developer perspective
@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!
@jroseme
@jroseme 9 күн бұрын
Pong animation was fire 🔥
@l_a_h797
@l_a_h797 8 ай бұрын
Thank you ... this hit some nails on the head for me!
@LeoFuso
@LeoFuso 5 ай бұрын
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.
@MikeVerba
@MikeVerba Жыл бұрын
At last!! Great explanation - I know code, I can handle Gradle. As simple as that!
@systematicpsychologic7321
@systematicpsychologic7321 Жыл бұрын
Solid framing, thank you.
@mikefischbein3230
@mikefischbein3230 Ай бұрын
That was great. Thanks.
@damercy
@damercy Жыл бұрын
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! ❤
@brucecichowlas4156
@brucecichowlas4156 Жыл бұрын
That IS insightful! Thanks!
@vvanchesa
@vvanchesa 7 ай бұрын
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.
@MechWhisper
@MechWhisper Жыл бұрын
Thanks for the insight! It opens up my eyes!
@sachinwalunjakar8854
@sachinwalunjakar8854 11 ай бұрын
Thank you for making this video.
@ehippo1
@ehippo1 Жыл бұрын
This video is from developer for developers. Love it !
@thiagoalexandremartinsmont4115
@thiagoalexandremartinsmont4115 Жыл бұрын
Great content! Congratulations!
@kitersrefuge7353
@kitersrefuge7353 Жыл бұрын
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 ;=)
@Veetrill_UKR
@Veetrill_UKR 7 ай бұрын
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!
@michaelperkins1119
@michaelperkins1119 5 ай бұрын
Wow, considering it as code indeed changes a lot. Thank you!
@go_better
@go_better Жыл бұрын
Thanks! That actually makes a lot of sense...
@mahoneg
@mahoneg Жыл бұрын
Thanks great place to start!
@st-tube
@st-tube Жыл бұрын
Very well done!
@it-series-music
@it-series-music Жыл бұрын
Amazing video🔥🔥🔥
@HellCatLeMaudit
@HellCatLeMaudit Жыл бұрын
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 7 ай бұрын
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
@vivekgupta5749
@vivekgupta5749 Жыл бұрын
Finally, I can say I know how to write build gradle
@aparfeno
@aparfeno Жыл бұрын
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!
@salmaK20012
@salmaK20012 9 ай бұрын
You're a life saver!
@karthikeyanm9922
@karthikeyanm9922 Жыл бұрын
Deserves more likes and views !
@MrJoker-ze6bb
@MrJoker-ze6bb Жыл бұрын
please make video on Android Gradle
@SuryakiranAllu
@SuryakiranAllu Жыл бұрын
simply a must watch gradle tutorial video
@rajushingadiya2860
@rajushingadiya2860 9 ай бұрын
thanks sir
@ChrisAthanas
@ChrisAthanas Жыл бұрын
Super helpful Why is this not told Day one? Android has an immense learning curve
@leoamato6113
@leoamato6113 Жыл бұрын
thank you
@shriduttkothari
@shriduttkothari Жыл бұрын
Thanks bhai 😊
@flyinghorse2739
@flyinghorse2739 Жыл бұрын
Can I place my .java file within /src/main/java
@jonathankee9322
@jonathankee9322 Жыл бұрын
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
@priyatanudey6104
@priyatanudey6104 Жыл бұрын
The heart beat moment is like deja vu
@dsinghr
@dsinghr Жыл бұрын
Picking up a Gradle upgrade ticket gives me jitters
@jdsaravaiya6468
@jdsaravaiya6468 Жыл бұрын
Video starts at 01:48
@mohamedyoussef8835
@mohamedyoussef8835 Жыл бұрын
Awesome 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.
@rebok232
@rebok232 9 ай бұрын
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
@Emerald214
@Emerald214 Жыл бұрын
I searched "Gradle sucks" and the result showed your video.
@davidtico1613
@davidtico1613 Жыл бұрын
Perdona, pero no me entero de nada, flatDir no me funciona y tampoco tu explicación, gracias
@aliceb.8615
@aliceb.8615 Жыл бұрын
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! ;)
@build-things
@build-things Жыл бұрын
Insightful video. I still think gradle has possibly the worst documentation iv ever tried to read though
@NexusBaum
@NexusBaum Жыл бұрын
Well Maven is even worse in my opinion
@adolf7744
@adolf7744 2 ай бұрын
Oh yes! Code is made out of code!
@halotroop2288
@halotroop2288 11 ай бұрын
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 11 ай бұрын
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 7 ай бұрын
kotlin dsl is the way
@jopadjr
@jopadjr Жыл бұрын
571st...Thanks Tom
@alphabee8171
@alphabee8171 10 ай бұрын
i know code.
@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 Жыл бұрын
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 2 ай бұрын
i dont know code, gradle is garbage
@sciab3674
@sciab3674 Ай бұрын
nice one thanks
@dustmarcus
@dustmarcus Жыл бұрын
Great. You could also explain the "configuration { myNewConfig }" magic. (NamedDomain..., create, getAt, getByName)
@rajushingadiya2860
@rajushingadiya2860 9 ай бұрын
thanks sir
@TomGregoryTech
@TomGregoryTech 9 ай бұрын
You're very welcome!
With these 5 Gradle benefits you'll NEVER use Maven again
10:53
Tom Gregory Tech
Рет қаралды 15 М.
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 109 МЛН
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 7 МЛН
Gradle Course for Beginners | Get Going with Gradle
56:59
Tom Gregory Tech
Рет қаралды 26 М.
Why Gradle Is DESTROYING Maven
10:08
Tom Gregory Tech
Рет қаралды 9 М.
7 Gradle secrets you WISH you'd known
9:46
Tom Gregory Tech
Рет қаралды 7 М.
Understanding Gradle #08 - Declaring Dependencies
13:15
onepiece.Software by Jendrik Johannes
Рет қаралды 10 М.
The REAL Reason I Quit Coding Jobs Forever
7:12
Tom Gregory Tech
Рет қаралды 3,6 М.
Debug Java Like a Pro in IntelliJ IDEA
17:28
Tom Gregory Tech
Рет қаралды 41 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 719 М.
Why the Internet Needs Millions of DNS Servers
9:38
Tom Gregory Tech
Рет қаралды 1,7 М.
Introduction to writing Gradle plugins
31:38
Tom Gregory Tech
Рет қаралды 21 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,8 МЛН
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 242 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2,1 МЛН
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН