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
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..
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.
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.
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.
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++...
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.
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
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.
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.
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
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 ?
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.
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!!
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?
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?
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.
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
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??
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.
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 ?
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.
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
Thanks for sharing Dileep.
Useful add on 👍
The turorial is so good no doubt but the background music is breaking the concentration
The horn honking is killing me
Yes evn I distracted and checking if any other mobile ringing😄
Nice video. Also very good background music, feels like a video game.
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..
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.
Thank you for sharing your extensive knowledge.
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.
you made it so clear by your elaborative style. thank you
Is there another follow up video on gradle by Techprimers? i can't find one.
Here is the other video Ambreen - ua-cam.com/video/PHTw0XWGkDw/v-deo.html
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.
thanks Jovan. Sure. They are coming soon..
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++...
Do you mean the task feature and the capability to write your own code in DSL doesn' t explain why its not maven?
Can you explain the flow of gradle project that integrates to aws. What was the first file that executes?
Thank you so much dear.
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.
You can enable gradle cache for this purpose
Thank you for the easy to understand intro of Gradle. It helped me get started..
Thanks Skangayam. GLad that was useful
Please update video to see 2021 updates of Gradle !!!
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
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.
Thank you for your video. The content is very good.
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.
My pleasure Dom. Cheers
can anyone help how to stop servers in IntelliJ. getting the error like Web-server is already running
Nice and understood
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
Great video as always :)
+prajwal praju thanks mate ✌
Very nice video 👍 thanks
thank bro..good video for gradle..☺☺
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 ?
Yes. However in Spring Boot, there is something called spring-boot-devtools which does Live reload
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.
Good one
What's up with Mario kart music in the background?
Thank you so much .Great video and truly informative.
Thanks Mu.
Watch this: ua-cam.com/video/mPpncYETnTg/v-deo.html
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!!
Sure Sonee. Corrected in the recent videos
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?
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?
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.
Thanks a lot.
Have you done a custom java standalone plugin? I would love to see how it is done!
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
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?
depends on the size of the project.
Thank you... its really nyc.. good job
[1:51] - "So XML is not like a language, right?" - It is like a language, since XML stands for "eXtensible Markup Language".
I think he meant programming language
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??
Please make a video for sample selenium pgm with gradle + Testng Framework
thanks for the content it really helps can we have video with springboot with soap and gradle thanks
There is a video on spring boot with soap. Take a look at it
kindly make a video on multi module gradle project
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.
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 ?
beautiful tut, simple, consice and precise, without any fuss. but please lose the background music. and thanks
Awesome video.
Could anyone explain the error occured during 2nd test implementation?
Can I use ant task in gradle?
simply superb.
thanks Kishore
Syntax = { Maven: "XML", Gradle: "JSON"}
Thank you man!
Have asked fee questions on ur fb page , can you please take a look at it
responded there
Great Video as usual..!!
Thanks Krishna
Look at that JPEG-compression on the thumbnail... Might wanna use PNG next time :P
TLDR;
Maven uses XML
Gradle uses Groovy DSL or even Kotlin
Thank a lot!
Is correct this: maven+ant=gradle?
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.
Thanks for the clarification Mu.
Good work
+Ram Kumar thanks ram
Thanks, although would like to see more.
Great content but the background music is kinda annoying and distracting.
why a backgroung music when you need to talk something important here. please be better next time. thanks for the video.
Background music is very disturbing otherwise the video is coool
Multimodue using gradle
So many tinnitus sounds in the background! :(
Watch this: ua-cam.com/video/mPpncYETnTg/v-deo.html
Thanks bro
the background music is very annoying :(
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.
Whats the deal with the background music. If you making serious videos, get rid of any bgms.
The music is annoying.
Your sound quality is very bad. you must get a proper microphone to do these videos right.
Yes Ben. New videos hav better audio quality
Remove background music man
removed in all new videos
so funny at 0.75 the speed