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

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 108

  • @dileepalla6769
    @dileepalla6769 6 років тому +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

  • @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😄

  • @sagarkelkar3429
    @sagarkelkar3429 2 роки тому

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

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

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

  • @guliyevshahriyar
    @guliyevshahriyar Рік тому

    Thank you for sharing your extensive knowledge.

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

  • @tusharrajpurohit6487
    @tusharrajpurohit6487 5 років тому +1

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

  • @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 - ua-cam.com/video/PHTw0XWGkDw/v-deo.html

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

  • @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?

  • @anushareddy98
    @anushareddy98 3 роки тому

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

  • @suryaprakashnayak7263
    @suryaprakashnayak7263 3 роки тому +1

    Thank you so much dear.

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

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

  • @pguti778
    @pguti778 3 роки тому

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

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

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

  • @hype2244
    @hype2244 5 років тому +1

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

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

  • @swapnilzurange223
    @swapnilzurange223 4 роки тому

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

  • @kathiresanm4280
    @kathiresanm4280 2 роки тому +1

    Nice and understood

  • @muralijava3603
    @muralijava3603 5 років тому

    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

  • @prajwalgs30
    @prajwalgs30 7 років тому +3

    Great video as always :)

    • @TechPrimers
      @TechPrimers  7 років тому

      +prajwal praju thanks mate ✌

  • @rupali271
    @rupali271 5 років тому +1

    Very nice video 👍 thanks

  • @PraveenKumar-lp6il
    @PraveenKumar-lp6il 2 роки тому

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

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

  • @sumanthvarada
    @sumanthvarada 4 роки тому +1

    Good one

  • @aleksd286
    @aleksd286 5 років тому

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

  • @flipper71100
    @flipper71100 7 років тому +1

    Thank you so much .Great video and truly informative.

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

  • @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?

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

  • @fuadgafarov
    @fuadgafarov 2 роки тому +1

    Thanks a lot.

  • @philliphthai
    @philliphthai 6 років тому

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

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

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

  • @atifali7874
    @atifali7874 5 років тому +1

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

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

  • @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??

  • @jackvicky2173
    @jackvicky2173 6 років тому

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

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

  • @dhruvesh71
    @dhruvesh71 5 років тому

    kindly make a video on multi module gradle project

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

  • @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 ?

  • @steamerSama
    @steamerSama 5 років тому

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

  • @pramodcv
    @pramodcv 5 років тому +1

    Awesome video.

  • @OdpalajAchmed
    @OdpalajAchmed 6 років тому

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

  • @ajaysaini6934
    @ajaysaini6934 5 років тому

    Can I use ant task in gradle?

  • @kishoreramana1
    @kishoreramana1 7 років тому +1

    simply superb.

  • @mehralnikhil
    @mehralnikhil 6 років тому +4

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

  • @peterv6i
    @peterv6i 6 років тому +1

    Thank you man!

  • @Virat77799
    @Virat77799 7 років тому +1

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

  • @krishnakantkadam5481
    @krishnakantkadam5481 7 років тому +1

    Great Video as usual..!!

  • @DesertCookie
    @DesertCookie 5 років тому

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

  • @yellowalley
    @yellowalley 6 років тому +2

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

  • @travelwalk539
    @travelwalk539 6 років тому +1

    Thank a lot!

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

  • @ramkumarnillavazagan6108
    @ramkumarnillavazagan6108 7 років тому +1

    Good work

  • @birkhansonkan4236
    @birkhansonkan4236 7 років тому +1

    Thanks, although would like to see more.

  • @alok_clayman
    @alok_clayman 2 роки тому

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

  • @GANESHMARAGANI
    @GANESHMARAGANI 3 роки тому

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

  • @MS-jd6uo
    @MS-jd6uo 6 років тому

    Background music is very disturbing otherwise the video is coool

  • @tharunbharath8630
    @tharunbharath8630 4 роки тому +1

    Multimodue using gradle

  • @LensLiebe
    @LensLiebe 6 років тому +1

    So many tinnitus sounds in the background! :(

  • @kirankumar2806
    @kirankumar2806 6 років тому +1

    Thanks bro

  • @Ahmad-ej2fy
    @Ahmad-ej2fy 3 роки тому

    the background music is very annoying :(

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

  • @sriontube
    @sriontube 5 років тому

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

  • @johnnyq4260
    @johnnyq4260 5 років тому

    The music is annoying.

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

  • @jayyadav__
    @jayyadav__ 5 років тому

    Remove background music man

  • @aureldeac201
    @aureldeac201 5 років тому

    so funny at 0.75 the speed