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

  • @delicious_lunch3823
    @delicious_lunch38234 жыл бұрын

    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

    @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

    @dwang2805

    3 жыл бұрын

    @@TomGregoryTech Thank you so much!!

  • @ishanksingh2969

    @ishanksingh2969

    3 жыл бұрын

    @@TomGregoryTech This is the best 10-minute video I have seen about Gradle. Thank you very much!!

  • @alexismandelias
    @alexismandelias2 жыл бұрын

    I have 0 knowledge about Gradle and this 10-minute video taught me the basics in the most concise way possible, thanks!

  • @kevinf1920
    @kevinf19204 жыл бұрын

    Fantastic overview for starters. Thank you!

  • @mehboobali7021
    @mehboobali70214 жыл бұрын

    very simple and well explained👌 thanks Tom👍

  • @patmac4230
    @patmac42303 жыл бұрын

    Excellent tutorial that clarifies a lot of important beginner knowledge of Gradle !!!

  • @stephenlimb6141
    @stephenlimb61412 жыл бұрын

    This is clear, concise and to the point. Having worked with make, ant and maven - this is just what I needed - thanks.

  • @bernhardbaumgartner2890
    @bernhardbaumgartner28904 жыл бұрын

    Never seen a better introduction to a topic than this one here. Awesome man, truly awesome!

  • @TomGregoryTech

    @TomGregoryTech

    4 жыл бұрын

    Thanks!. I tried to make the video that I would have found useful when I started with Gradle.

  • @tonyhugecock9789
    @tonyhugecock97893 жыл бұрын

    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.

  • @fatemsaremi
    @fatemsaremi3 жыл бұрын

    Thank you so much for this!!! I'm having a hard time in my internship but this helps immensely

  • @mobbs8229
    @mobbs82293 жыл бұрын

    such concise explanation, great video!

  • @shadabgada937
    @shadabgada9373 жыл бұрын

    Very informative tutorial, Thanks !!

  • @Miketar2424
    @Miketar24243 жыл бұрын

    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

    @TomGregoryTech

    3 жыл бұрын

    Awesome, glad it was helpful.

  • @aqueuse
    @aqueuse3 жыл бұрын

    It's the tutorial I was searching, thank you !

  • @TomGregoryTech

    @TomGregoryTech

    3 жыл бұрын

    Made just for you!

  • @scottconner8318
    @scottconner83184 жыл бұрын

    Great video. Lots of good info.

  • @TomGregoryTech

    @TomGregoryTech

    4 жыл бұрын

    Thanks. Glad you got some value from it Scott.

  • @himanshupatankar7679
    @himanshupatankar76793 жыл бұрын

    Thanks a lot man, it was a huge help.

  • @markbordelon1601
    @markbordelon16013 жыл бұрын

    unbelievably concise and clear

  • @TomGregoryTech

    @TomGregoryTech

    3 жыл бұрын

    Thanks Mark!

  • @krammark23
    @krammark233 жыл бұрын

    Great tutorial - thanks!

  • @gilong1311
    @gilong13112 жыл бұрын

    Great work, thanks!

  • @ryankruger7401
    @ryankruger74013 жыл бұрын

    Thanks this was so much help.

  • @madhes23
    @madhes234 жыл бұрын

    Very nice video for gradle introduction!

  • @TomGregoryTech

    @TomGregoryTech

    4 жыл бұрын

    You're very welcome. See you in an other video!

  • @jasonchen2674
    @jasonchen26742 жыл бұрын

    Very nice tutorial to get me started. Also I am looking forward to checking out your free course.

  • @TomGregoryTech

    @TomGregoryTech

    2 жыл бұрын

    Hope you enjoy it!

  • @faisaladil5793
    @faisaladil57933 жыл бұрын

    that was superb tutorial 👍🎉

  • @djthedev
    @djthedev3 жыл бұрын

    This is soooo helpful thank you!

  • @TomGregoryTech

    @TomGregoryTech

    3 жыл бұрын

    You're very welcome Dinah!

  • @richard4580
    @richard45804 жыл бұрын

    thank you very helpful

  • @arm9180
    @arm91803 жыл бұрын

    Thanks bro this will hopefully make using java libraries a little less frustrating

  • @mrmupfukudzwa4374
    @mrmupfukudzwa43743 жыл бұрын

    Wow. This is a superb tutorial! Thank you

  • @mrnobodyy96
    @mrnobodyy964 жыл бұрын

    Thanks dawg.

  • @TomGregoryTech
    @TomGregoryTech2 жыл бұрын

    ►► Getting started with Gradle just got much easier. Check out my FREE Get Going with Gradle course → bit.ly/3HyZCCK

  • @princedeka6054
    @princedeka60543 жыл бұрын

    Very good tutorial brother 👍

  • @TomGregoryTech

    @TomGregoryTech

    3 жыл бұрын

    Thank you 👍

  • @tritschlerm
    @tritschlerm4 жыл бұрын

    Nice! Tx

  • @craigmunday3707
    @craigmunday37073 жыл бұрын

    Nice tutorial

  • @TomGregoryTech

    @TomGregoryTech

    3 жыл бұрын

    Thanks Craig.

  • @bensmith6987
    @bensmith69872 жыл бұрын

    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

    @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

  • @BrianRussell
    @BrianRussell3 жыл бұрын

    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

    @TomGregoryTech

    3 жыл бұрын

    Hi Brian. Thanks for the heads up. You're right testCompile has now been removed from Gradle in favour of testImplementation.

  • @minepolz320
    @minepolz3202 жыл бұрын

    Thanks

  • @lifeofstormy
    @lifeofstormy5 ай бұрын

    I wish I have seen this video 3 years ago. When I was starting in the programming world 😢

  • @RanaMuhammadWaqas
    @RanaMuhammadWaqas3 жыл бұрын

    A great tutorial. As Linus said talk is cheap, show me the code.

  • @johnpaulcarter7
    @johnpaulcarter73 жыл бұрын

    The acme of conciseness.

  • @RuwanIndikaPrasanna
    @RuwanIndikaPrasanna3 жыл бұрын

    Cheers

  • @toyboatt
    @toyboatt3 жыл бұрын

    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

    @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.

  • @ajayaviyyapu6971
    @ajayaviyyapu69713 жыл бұрын

    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

    @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

  • @deekaneable
    @deekaneable2 жыл бұрын

    Cool tutorial. The stabilization on your face was a little weird though.

  • @kaushikkumarbora
    @kaushikkumarbora4 жыл бұрын

    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

    @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

  • @msai_podcast
    @msai_podcast3 жыл бұрын

    I needed some comparison with maven

  • @TomGregoryTech

    @TomGregoryTech

    2 жыл бұрын

    Bit late, but "Build wars: Maven vs. Gradle in 2021" just got released kzread.info/dash/bejne/eIKZs7F6YtieprQ.html

  • @kyematzen6597
    @kyematzen65973 жыл бұрын

    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

    @TomGregoryTech

    3 жыл бұрын

    Hi. Use gradlew.bat in Windows.

  • @vishalkumarxyz
    @vishalkumarxyz2 жыл бұрын

    Hi ..can u explain gradle-wrapper.properties file in details...coz in organizations systems we usually get error on distributionUrl

  • @TomGregoryTech

    @TomGregoryTech

    2 жыл бұрын

    Hi. I have videos on the Gradle wrapper but don't go into that much detail kzread.info/dash/bejne/nnmaxLukkcbfYaw.html

  • @Pain-ln6gf
    @Pain-ln6gf2 жыл бұрын

    Thats cool and all but how to run gradle project as it was on 7:44? For me, there is no task main

  • @TomGregoryTech

    @TomGregoryTech

    2 жыл бұрын

    Good question. That is a feature of IntelliJ IDEA. Just right click the main method and choose "Run".

  • @rajshree123ful
    @rajshree123ful3 жыл бұрын

    it was nice but was very fast can u be slow and show detail of how you are giving the syntax??

  • @TomGregoryTech

    @TomGregoryTech

    3 жыл бұрын

    Sure thanks. I will bear this in mind for my next tutorials.

  • @spinacker16
    @spinacker164 жыл бұрын

    Tooaasks! You sound so british more than Queen =)

  • @TomGregoryTech

    @TomGregoryTech

    4 жыл бұрын

    The Queen wishes she was as posh as me. It's why she makes sure to watch all my Gradle videos ;)

  • @madhes23

    @madhes23

    4 жыл бұрын

    ​@@TomGregoryTech Haha! Love your slang man! Hoping to see more videos!

  • @MajinHico
    @MajinHico4 жыл бұрын

    what is java plugin?

  • @TomGregoryTech

    @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

    @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.

  • @BaldingEagle51
    @BaldingEagle51 Жыл бұрын

    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.

  • @yousifal-bayaty6903
    @yousifal-bayaty69033 жыл бұрын

    save some time and run it in 1.5 speed

  • @mohamadnourbader1068
    @mohamadnourbader10683 жыл бұрын

    thanks sure it good but you was so fast

  • @jesper2455
    @jesper24553 жыл бұрын

    This video is not easy to understand for complete beginners, which is a shame.

  • @TomGregoryTech

    @TomGregoryTech

    3 жыл бұрын

    Hi Jesper. Thanks for the feedback and sorry it wasn't the intro you were looking for.

  • @MrPetschko

    @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

    @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

    @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

    @MrPetschko

    3 жыл бұрын

    @@roymath Video Title: "and why you should use it". I think that points to people which never used gradle before

Келесі