Gradle Tutorial - why you should use it and how to get started
Ғылым және технология
Learn about the reasons to use Gradle and the fundamental concepts that make it one of the best build automation tools.
Join me on this Gradle tutorial as I create a new application from scratch, and build it up with the required plugins and dependencies to run it.
Gradle is a popular build tool, especially with Java developers who appreciate it's performance, concise definition, and flexibility. You can download it from gradle.org today.
If trying the example from this video in Gradle v7+ replace "testCompile" with "testImplementation" to avoid error "Could not find method testCompile()"
🚀 FREE INTRODUCTORY GRADLE COURSE tomgregory.com/gradle/courses...
📖 ULTIMATE GRADLE BUILD BIBLE tomgregory.com/gradle/gradle-...
☕ Java installation instructions adoptopenjdk.net/installation...
🐘 Gradle installation instructions gradle.org/install/
📖 View "Gradle tutorial for complete beginners" in article format tomgregory.com/gradle/gradle-...
🌍 Check out my website tomgregory.com/gradle/
Пікірлер: 89
You deserve at least 10 times the views man, this is without a doubt the clearest beginners overview for Gradle that I have found online.
@TomGregoryTech
4 жыл бұрын
Thanks a lot. I tried to put everything important into one video. With this type of feedback I will try to do some similar videos.
@dwang2805
3 жыл бұрын
@@TomGregoryTech Thank you so much!!
@ishanksingh2969
3 жыл бұрын
@@TomGregoryTech This is the best 10-minute video I have seen about Gradle. Thank you very much!!
I have 0 knowledge about Gradle and this 10-minute video taught me the basics in the most concise way possible, thanks!
Fantastic overview for starters. Thank you!
very simple and well explained👌 thanks Tom👍
Excellent tutorial that clarifies a lot of important beginner knowledge of Gradle !!!
This is clear, concise and to the point. Having worked with make, ant and maven - this is just what I needed - thanks.
Never seen a better introduction to a topic than this one here. Awesome man, truly awesome!
@TomGregoryTech
4 жыл бұрын
Thanks!. I tried to make the video that I would have found useful when I started with Gradle.
Thanks for the video Tom. I've learned that to understand stuff I have to hear it from a few good vantage points. Thanks for incorporating the jar files into the example. I have an MS background and picked up Kotlin/Java/Groovy just recently. This covered something I didn't know I didn't know, so thats the best kind of gain.
Thank you so much for this!!! I'm having a hard time in my internship but this helps immensely
such concise explanation, great video!
Very informative tutorial, Thanks !!
Thanks for this excellent and succinct demo of Gradle. It doesn't cover everything , but it's a perfect jumping off point to dive into Gradle's more advanced features.
@TomGregoryTech
3 жыл бұрын
Awesome, glad it was helpful.
It's the tutorial I was searching, thank you !
@TomGregoryTech
3 жыл бұрын
Made just for you!
Great video. Lots of good info.
@TomGregoryTech
4 жыл бұрын
Thanks. Glad you got some value from it Scott.
Thanks a lot man, it was a huge help.
unbelievably concise and clear
@TomGregoryTech
3 жыл бұрын
Thanks Mark!
Great tutorial - thanks!
Great work, thanks!
Thanks this was so much help.
Very nice video for gradle introduction!
@TomGregoryTech
4 жыл бұрын
You're very welcome. See you in an other video!
Very nice tutorial to get me started. Also I am looking forward to checking out your free course.
@TomGregoryTech
2 жыл бұрын
Hope you enjoy it!
that was superb tutorial 👍🎉
This is soooo helpful thank you!
@TomGregoryTech
3 жыл бұрын
You're very welcome Dinah!
thank you very helpful
Thanks bro this will hopefully make using java libraries a little less frustrating
Wow. This is a superb tutorial! Thank you
Thanks dawg.
►► Getting started with Gradle just got much easier. Check out my FREE Get Going with Gradle course → bit.ly/3HyZCCK
Very good tutorial brother 👍
@TomGregoryTech
3 жыл бұрын
Thank you 👍
Nice! Tx
Nice tutorial
@TomGregoryTech
3 жыл бұрын
Thanks Craig.
100% agree on @Hegyi Levente's comment. Honestly, his course not only saved me tons of time but explanations are clear and straightforward. In terms of content structure and teaching, @Tom Gregory Tech's style easily surpasses any Coursera or LinkedIn courses. Thank you again. I am more than willing to pay your courses once you list them on the website. Cheers.
@TomGregoryTech
2 жыл бұрын
Thanks Ben! There is also a more advanced course for anyone wanting to reach Gradle Java project mastery learn.tomgregory.com/courses/gradle-hero
Nice fine, thanks Tom. New to gradle, but had to use testImplementation 'junit:junit:4.12' instead of testCompile 'junit:junit:4.12' for it to work. Will check your course. (v 7.0.0 installed with choclatey on Windows & using vscode)
@TomGregoryTech
3 жыл бұрын
Hi Brian. Thanks for the heads up. You're right testCompile has now been removed from Gradle in favour of testImplementation.
Thanks
I wish I have seen this video 3 years ago. When I was starting in the programming world 😢
A great tutorial. As Linus said talk is cheap, show me the code.
The acme of conciseness.
Cheers
Augh. Your delivery was clear, but it's still over my head. I needed a brief intro detailing prerequisites. Like, "This is for developers that have built multiple projects using Maven and are familiar with a variety of configuration languages such as xml and Groovy" I like the video, and I want to learn more about Maven and Gradle. I would love it if the many videos on this subject were more clear about their audience at the start of the video.
@TomGregoryTech
3 жыл бұрын
Hi Philippe. Thanks for this suggestion and sorry the video didn't hit the spot. It makes sense that you should know if the video is aimed at you. I've included such a section in the free introductory Gradle course I recently created, which aims to fill in some of the gaps from this video.
Hello Tom, Thank you so much for the wonderful video. I have been using Eclipse my whole life. Can you please suggest me with the best gradle content assist plugin that i can use with Eclipse to write the build.gradle file without typing to much stuff.
@TomGregoryTech
3 жыл бұрын
Hi Ajaya. You're very welcome. I'd like to help, but unfortunately it's been a long time since I used Eclipse. Let me know if you find a good plugin. Tom
Cool tutorial. The stabilization on your face was a little weird though.
how do i add a local jar file to class path using gradle? when i try to add it normally using IntelliJ and then reload gradle, it changes the class path, removing the dependency i added
@TomGregoryTech
4 жыл бұрын
Hi Kaushik. IntelliJ derives its configuration for a Gradle project from the build.gradle, so any changes you make manually to IntelliJ may be overwritten. If you want to add a local jar to as a dependency in your build, try following this suggestion stackoverflow.com/questions/20700053/how-to-add-local-jar-file-dependency-to-build-gradle-file
I needed some comparison with maven
@TomGregoryTech
2 жыл бұрын
Bit late, but "Build wars: Maven vs. Gradle in 2021" just got released kzread.info/dash/bejne/eIKZs7F6YtieprQ.html
Hi. I have an issue, and an explanation is that when I try testing or try executing a Gradle command in local it brings up this: D:\Projects\Java\Freetime\First Gradle Project>./gradlew build '.' is not recognized as an internal or external command, operable program or batch file. Another question is how do you instantly run and open the terminal for a project's main method? Another question is how do you remove the highlight when you do ./ in the terminal?
@TomGregoryTech
3 жыл бұрын
Hi. Use gradlew.bat in Windows.
Hi ..can u explain gradle-wrapper.properties file in details...coz in organizations systems we usually get error on distributionUrl
@TomGregoryTech
2 жыл бұрын
Hi. I have videos on the Gradle wrapper but don't go into that much detail kzread.info/dash/bejne/nnmaxLukkcbfYaw.html
Thats cool and all but how to run gradle project as it was on 7:44? For me, there is no task main
@TomGregoryTech
2 жыл бұрын
Good question. That is a feature of IntelliJ IDEA. Just right click the main method and choose "Run".
it was nice but was very fast can u be slow and show detail of how you are giving the syntax??
@TomGregoryTech
3 жыл бұрын
Sure thanks. I will bear this in mind for my next tutorials.
Tooaasks! You sound so british more than Queen =)
@TomGregoryTech
4 жыл бұрын
The Queen wishes she was as posh as me. It's why she makes sure to watch all my Gradle videos ;)
@madhes23
4 жыл бұрын
@@TomGregoryTech Haha! Love your slang man! Hoping to see more videos!
what is java plugin?
@TomGregoryTech
4 жыл бұрын
It's a plugin that adds Java compilation, packaging, and testing capabilities to your Gradle build. Once you've added it, when you run the build Gradle task it will compile and package your code into a jar file, as seen in the video.
@MajinHico
4 жыл бұрын
@@TomGregoryTech Thanks man. Many gradle tutorials asumes that you know stuf and do not explain important basic details. Yours tutorials are different. Thank you for that.
Gradle sync performs horribly in Android Studio on my Ubuntu 22, Core I3 4GB laptop. My build.sh completes the build faster. Mostly because Android Studio is a bloated monster.
save some time and run it in 1.5 speed
thanks sure it good but you was so fast
This video is not easy to understand for complete beginners, which is a shame.
@TomGregoryTech
3 жыл бұрын
Hi Jesper. Thanks for the feedback and sorry it wasn't the intro you were looking for.
@MrPetschko
3 жыл бұрын
@@TomGregoryTech It explains nice what you can do with gradle but sadly it lacks some explanation how to get started. I want to use a build system to now, but for small projects i still have the feeling adding my stuff manually is faster and more easy
@TomGregoryTech
3 жыл бұрын
@@MrPetschko I realise it lacks some detail, which is why I made this free course which fills in the details. Hope it helps learn.tomgregory.com/courses/get-going-with-gradle
@roymath
3 жыл бұрын
Not a fair criticism.. this wasn't advertised as a complete beginners tutorial.. Tom - you did a great job! Please make more..
@MrPetschko
3 жыл бұрын
@@roymath Video Title: "and why you should use it". I think that points to people which never used gradle before