What is Gradle? How is it different from Maven? | DevOps | Tech Primers

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

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

  • @dileepalla6769
    @dileepalla6769 7 ปีที่แล้ว +43

    Gradle supports Incremental Builds, If a Java Class has not been changed from its last build it will avoids recompiling to generate .class file so that build-time will be saved.
    Transitive Dependencies will be managed by Gradle which is added later in Maven2
    Concurrency Safe Cache. You can run several builds on the Same Cache (Similar to Local Repository in Maven) Gradle will ensure the Cache is concurrency safe.
    Custom Repository Layout, unlike Maven in Gradle you can customize the Directory structure of a project
    File based dependencies - In Maven to use your own dependency you need to import it into local maven repository but in Gradle you can refer the Jar dependencies from File System as dependency
    Fully Configurable - In Maven the only way of adding the build extensions is through plug-in. But in Gradle you can write Tasks like Ant and can customize the build behaviour easily

    • @TechPrimers
      @TechPrimers  7 ปีที่แล้ว

      Thanks for sharing Dileep.

    • @Dedeepya9
      @Dedeepya9 4 ปีที่แล้ว

      Useful add on 👍

  • @RAVISINHA-jd9wq
    @RAVISINHA-jd9wq 6 ปีที่แล้ว +73

    The turorial is so good no doubt but the background music is breaking the concentration

    • @awzsdrcfgybhjimklp
      @awzsdrcfgybhjimklp 4 ปีที่แล้ว

      The horn honking is killing me

    • @Dedeepya9
      @Dedeepya9 4 ปีที่แล้ว

      Yes evn I distracted and checking if any other mobile ringing😄

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

    Got a new job and switching from Maven to Gradle so this video is very much help full.... Thank you Tech Primers ... Thank so much .... the explanation is really good..

  • @sagarkelkar3429
    @sagarkelkar3429 3 ปีที่แล้ว

    Nice video. Also very good background music, feels like a video game.

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

    you made it so clear by your elaborative style. thank you

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

    i have few queries. please make a video showing
    how to view dependency hierarchy using gradle.
    how to work on exclusions and identify conflicting jars using dependency tree.
    how to open dependent jar classes using gradle like we just click on the and it goes into the pom.xml file of that dependency.

  • @nouman1741
    @nouman1741 6 ปีที่แล้ว

    Help!
    okay, so when you ran build command on gradle, it was suppose to run the "test" task, BUT when you ran a specific task: "techprimers" at 16:33, why did it execute "test" there as well?

    • @RnRJohnny
      @RnRJohnny 3 ปีที่แล้ว

      Did you notice he quickly switched up the topic away from the script "test" sans "task". It remains front and centre and as he diverges it blinks at me, "try me now, try me now!" What does it do? I wonder, does it properly not run? But, on error it ran as a "task" when the target was another? Was this his oops moment of the video? I thought so. Worth wondering about that moving target as he so adeptly slipped away from further error.

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

    Thank you for the easy to understand intro of Gradle. It helped me get started..

    • @TechPrimers
      @TechPrimers  7 ปีที่แล้ว

      Thanks Skangayam. GLad that was useful

  • @anushareddy98
    @anushareddy98 3 ปีที่แล้ว

    Can you explain the flow of gradle project that integrates to aws. What was the first file that executes?

  • @ambreenshameem1498
    @ambreenshameem1498 4 ปีที่แล้ว

    Is there another follow up video on gradle by Techprimers? i can't find one.

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

      Here is the other video Ambreen - th-cam.com/video/PHTw0XWGkDw/w-d-xo.html

  • @guliyevshahriyar
    @guliyevshahriyar 2 ปีที่แล้ว

    Thank you for sharing your extensive knowledge.

  • @muralijava3603
    @muralijava3603 6 ปีที่แล้ว

    I'm trying to work on gradle with eclipse and STS but i'm facing lot of issues and errors with my HelloWorld project itself....can you explain in detail or any recomandations with IDE specific,what IDE is better and basic setup with latest versions please

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

    Thanks for the video. It was a little light on some bits but I think that's acceptable for a quick comparison. Btw, macOS is not based on Linux, it's based on NeXTstep which in turn was based on BSD.

  • @pguti778
    @pguti778 3 ปีที่แล้ว

    Please update video to see 2021 updates of Gradle !!!

  • @codingstyle9480
    @codingstyle9480 2 ปีที่แล้ว

    It is easy to find simple showvases in the internet. I never see anybody showing an example that is closer to a real world use case. This video is no exception. Nothing much from it can you gain.

  • @dom621
    @dom621 7 ปีที่แล้ว

    Thanks for the video, I'm just starting to really dive into java. Recently found out about Maven and Gradle being something important in java so I'm researching all I can. This video helped.

    • @TechPrimers
      @TechPrimers  7 ปีที่แล้ว

      My pleasure Dom. Cheers

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

    Thank you so much dear.

  • @OdpalajAchmed
    @OdpalajAchmed 6 ปีที่แล้ว

    Could anyone explain the error occured during 2nd test implementation?

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

    Thank you for your video. The content is very good.

  • @jovanducic8732
    @jovanducic8732 7 ปีที่แล้ว +6

    Amazing videos, l think you should do some API endpoint video, where backend and frontend catch on endpoint and all that stuff...
    Spring Boot with Angular or something for example :) Well done.

    • @TechPrimers
      @TechPrimers  7 ปีที่แล้ว

      thanks Jovan. Sure. They are coming soon..

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

    Thank you so much .Great video and truly informative.

  • @swapnilzurange223
    @swapnilzurange223 4 ปีที่แล้ว

    can anyone help how to stop servers in IntelliJ. getting the error like Web-server is already running

  • @MohaideenA
    @MohaideenA 6 ปีที่แล้ว

    Hi Ajay, QQ:- Most example I see on internet is about running a main class from gradle.. What if I want to run locally the war file generated using gradle , Do I have to deploy it everytime for any simple changes in local console ?

    • @TechPrimers
      @TechPrimers  6 ปีที่แล้ว

      Yes. However in Spring Boot, there is something called spring-boot-devtools which does Live reload

    • @MohaideenA
      @MohaideenA 6 ปีที่แล้ว

      I got it, But my query is not specific to spring boot, I have lots of legacy application which does not have even maven configured, all of such project I'm trying to setup devops via Gradle and Jenkins.. Build using gradle is working fine, but I have redeploy it to the admin console every-time when I make some changes to the projects, wondering if there is any work around.

  • @dhruvesh71
    @dhruvesh71 5 ปีที่แล้ว

    kindly make a video on multi module gradle project

  • @philliphthai
    @philliphthai 6 ปีที่แล้ว

    Have you done a custom java standalone plugin? I would love to see how it is done!

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

    Very nice video 👍 thanks

  • @muhammadwasim8787
    @muhammadwasim8787 4 ปีที่แล้ว

    I just started with gradle and wonder, if there's a way that we can reuse the dependencies with different projects. Instead of downloading them each time we create a new project, can we just tell intellij to look for that directory and find all the dependencies which are available. And download only the newer ones, that aren't available.

    • @TechPrimers
      @TechPrimers  4 ปีที่แล้ว

      You can enable gradle cache for this purpose

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

    Good one

  • @Oblivion4eg
    @Oblivion4eg 7 ปีที่แล้ว +6

    This lacks insight into Gradle. It does say like how it's alternative to maven and what's different if you're going to use it like maven, and there would no complain if that's what I was looking for.
    But! I wanted to know what Gradle is and what it's purpose, why it's build like that and what it tries to solve, what ways it offers that were not introduced by Maven and what makes it Gradle and not Maven++...

    • @pranaygoyal8642
      @pranaygoyal8642 6 ปีที่แล้ว

      Do you mean the task feature and the capability to write your own code in DSL doesn' t explain why its not maven?

  • @jackvicky2173
    @jackvicky2173 6 ปีที่แล้ว

    Please make a video for sample selenium pgm with gradle + Testng Framework

  • @ajaysaini6934
    @ajaysaini6934 5 ปีที่แล้ว

    Can I use ant task in gradle?

  • @PraveenKumar-lp6il
    @PraveenKumar-lp6il 2 ปีที่แล้ว

    thank bro..good video for gradle..☺☺

  • @mania4k0
    @mania4k0 4 ปีที่แล้ว

    [1:51] - "So XML is not like a language, right?" - It is like a language, since XML stands for "eXtensible Markup Language".

    • @TanayPrabhuDesai
      @TanayPrabhuDesai 4 ปีที่แล้ว

      I think he meant programming language

  • @ranjitraj05
    @ranjitraj05 6 ปีที่แล้ว

    How difficult it is to migrated our existing maven POM.xml file to Gradle and will it work as it is or we need to lot of changes?

    • @TechPrimers
      @TechPrimers  6 ปีที่แล้ว

      depends on the size of the project.

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

    Nice and understood

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

    Thank you... its really nyc.. good job

  • @aleksd286
    @aleksd286 5 ปีที่แล้ว

    What's up with Mario kart music in the background?

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

    thanks for the content it really helps can we have video with springboot with soap and gradle thanks

    • @TechPrimers
      @TechPrimers  6 ปีที่แล้ว

      There is a video on spring boot with soap. Take a look at it

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

    Thanks a lot.

  • @la3035
    @la3035 6 ปีที่แล้ว

    Hi Thanks for the video, is it possible to integrate in eclipse IDE, if yes please make a video on it, i am automation engineer i have to work with eclipse cucumber plugin using gradle, as maven provides the flexibility to add all the jar of selenium and cucumber in the similar flexibility gradle provide??

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

    Great video as always :)

    • @TechPrimers
      @TechPrimers  7 ปีที่แล้ว

      +prajwal praju thanks mate ✌

  • @JohnWick-zc5li
    @JohnWick-zc5li 6 ปีที่แล้ว

    why getting this supid error * What went wrong:
    Execution failed for task ':jar'.
    > archive contains more than 65535 entries.
    To build this archive, please enable the zip64 extension.
    See: docs.gradle.org/4.7/dsl/org.gradle.api.tasks.bundling.Zip.html#org.gradle.api.tasks.bundling.Zip:zip64
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    if Zipz:true class is not found

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

    simply superb.

  • @PartimeViewer591
    @PartimeViewer591 4 ปีที่แล้ว

    Hello there, It's nice video on Gradle I have watched so far. Many thanks. Could you please prepare a Gradle project which has multiple modules? Regards

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

    Awesome video.

  • @abrarahmad5121
    @abrarahmad5121 5 ปีที่แล้ว

    Hey there, first congratulations on posting such a useful video ...
    I have a multi-module gradle project where I need to add Implementation-Version in manifest.mf file of each module which needs to be copied from the main gradle.properties version field. Can you please comment back how it can be achieved ?

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

    Good work

    • @TechPrimers
      @TechPrimers  7 ปีที่แล้ว

      +Ram Kumar thanks ram

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

    Thanks, although would like to see more.

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

    Your videos are generally nice. I quite oftenly refer you blogs. Your contents, topics, way of presentation everything is so good and I use it every day. But please stop saying "Right?" too frquently in your videos, sometimes it's really annoying. I literally paused this video after 10 min and now commenting on it!!

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

      Sure Sonee. Corrected in the recent videos

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

    Have asked fee questions on ur fb page , can you please take a look at it

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

    Thank you man!

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

    Thank a lot!

  • @steamerSama
    @steamerSama 5 ปีที่แล้ว

    beautiful tut, simple, consice and precise, without any fuss. but please lose the background music. and thanks

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

    Syntax = { Maven: "XML", Gradle: "JSON"}

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

    Is correct this: maven+ant=gradle?

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

      valix85 Gradle provides power of Ant with easiness of maven. They have their own pros and cons. So the direct answer to your question is No.

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

      Thanks for the clarification Mu.

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

    TLDR;
    Maven uses XML
    Gradle uses Groovy DSL or even Kotlin

  • @plexq
    @plexq 4 ปีที่แล้ว

    The order of presentation here is not ideal. Why start with custom tasks?! Mostly we want to just use Gradle to build our project with tasks that are likely all ready defined - the standard stuff. How do you run tests, how do you run a specific test, how do you build an assembly, a war file; how do you run the project?

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

    Great Video as usual..!!

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

    Thanks bro

  • @DesertCookie
    @DesertCookie 5 ปีที่แล้ว

    Look at that JPEG-compression on the thumbnail... Might wanna use PNG next time :P

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

    Multimodue using gradle

  • @rainerhaseneder2480
    @rainerhaseneder2480 4 ปีที่แล้ว

    I find the background music just distracting, if not annoying. Too much jumping forth and back. Probably using a split could be more convenient way to show things.

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

    So many tinnitus sounds in the background! :(

    • @rainerhaseneder2480
      @rainerhaseneder2480 4 ปีที่แล้ว

      Watch this: th-cam.com/video/mPpncYETnTg/w-d-xo.html

  • @MS-jd6uo
    @MS-jd6uo 7 ปีที่แล้ว

    Background music is very disturbing otherwise the video is coool

  • @GANESHMARAGANI
    @GANESHMARAGANI 3 ปีที่แล้ว

    why a backgroung music when you need to talk something important here. please be better next time. thanks for the video.

  • @alok_clayman
    @alok_clayman 2 ปีที่แล้ว

    Great content but the background music is kinda annoying and distracting.

  • @Ahmad-ej2fy
    @Ahmad-ej2fy 4 ปีที่แล้ว

    the background music is very annoying :(

  • @aureldeac201
    @aureldeac201 5 ปีที่แล้ว

    so funny at 0.75 the speed

  • @anilkinikar
    @anilkinikar 4 ปีที่แล้ว

    Please get rid of that irritating background music. Cannot concentrate. All your videos you have that music. If you are casually looking at the video then such music is okay. But when we want to focus on tutorial, we want hear only your voice. Music removes all the seriousness of the subject and makes it casual. Hope you understand.

  • @johnnyq4260
    @johnnyq4260 5 ปีที่แล้ว

    The music is annoying.

  • @sriontube
    @sriontube 5 ปีที่แล้ว

    Whats the deal with the background music. If you making serious videos, get rid of any bgms.

  • @jayyadav__
    @jayyadav__ 5 ปีที่แล้ว

    Remove background music man

    • @TechPrimers
      @TechPrimers  5 ปีที่แล้ว

      removed in all new videos

  • @benzflynn
    @benzflynn 5 ปีที่แล้ว

    Your sound quality is very bad. you must get a proper microphone to do these videos right.

    • @TechPrimers
      @TechPrimers  5 ปีที่แล้ว

      Yes Ben. New videos hav better audio quality