Hi Raghav, thanks for the detailed explanation, which we always like and very useful. In order to be perfect, can you please add the following to the playlist? 5) configuring Gradle with Intelli-j with project structure for tests 6) How to configure Tasks and tests for a run for command line. Basically, it will be more helpful if you can show us the best practices for an E2E Test / Task execution. Again, Thanks for your effort
Hi Raghu By default, Gradle generates a GradleProject project with a lib directory inside the project. The lib directory contains the external library dependencies of your project, and it is generated by the Gradle build script. The build script manages these dependencies for your project by downloading the required libraries from remote repositories and including them in your project's classpath. If you do not need the lib directory, you can safely delete it, or you can modify the build script to exclude the directory from the build.
@@RaghavPal sir please make a video on this problem , so many people getting this problem but they dont know how to resolve it.. in youtube also there is no solution...i hope you make a video on this issue
Hi Sameer, I am not completely sure on that and will have to check online. See if this helps - stackoverflow.com/questions/56246122/convert-gradle-multi-project-to-springboot-fat-jar-application
Hello Raghav! I have encountered a problem where my result differs from yours. After creating a gradle project I don't have a "build.gradle" project file, but rather a "build.gradle.kts", and in the package explorer all of the files you have with the gradle Icon, have a text icon for me and the kts extension. Would you please provide any advice for me to achieve the same result as in the video? I have tried re-installing eclipse ide multiple times, and using cmd verified that I have Java and gradle installed correctly. Any advice will help! Thank you!
ok Here's a simple and basic step-by-step solution to help you achieve the same result as in the video: 1. Check your Gradle settings In your Eclipse IDE, go to Window > Preferences > Gradle. Make sure that the Gradle Distribution is set to the correct version (e.g., Gradle 7.1.1). Also, ensure that the Gradle User Home is set to a valid directory 2. Convert your project to use Groovy-based Gradle Since you're seeing a build.gradle.kts file, it's likely that your project is using Kotlin-based Gradle (.kts extension). To switch to Groovy-based Gradle (.gradle extension), follow these steps: Delete the build.gradle.kts file from your project. Create a new file called build.gradle in the same location. Copy the contents of the build.gradle.kts file into the new build.gradle file, and convert the Kotlin syntax to Groovy syntax 3. Update your project structure In your Eclipse IDE, refresh your project by right-clicking on the project > Gradle > Refresh Gradle Project. This should update your project structure and icons 4. Verify your Gradle installation As you've already done, verify that you have Java and Gradle installed correctly using the command line. Additional tips Make sure you're using the correct Eclipse IDE version and plugins for Gradle support -
Priyanka There are a few possible reasons why you may not be able to see the Selenium dependency in your Gradle project in Eclipse: * The dependency is not included in the build.gradle file. * The dependency is not available in the Maven Central repository. * The dependency is being blocked by a firewall or proxy. To troubleshoot this issue, you can try the following: 1. Make sure that the dependency is included in the build.gradle file. For example, to add the Selenium WebDriver dependency, you would add the following line to the dependencies section of the build.gradle file: ``` dependencies { implementation 'org.seleniumhq.selenium:selenium-java:4.5.0' } ``` 2. Make sure that the dependency is available in the Maven Central repository. You can check this by searching for the dependency on the Maven Central website. 3. Make sure that the dependency is not being blocked by a firewall or proxy. If you are using a firewall or proxy, you may need to configure it to allow access to the Maven Central repository. Once you have verified that the dependency is included in the build.gradle file, that it is available in the Maven Central repository, and that it is not being blocked by a firewall or proxy, you should be able to see the dependency in your Eclipse project. Here are some additional tips for troubleshooting Gradle dependency issues: * Use the Gradle logs to help you identify the cause of the issue. Gradle logs can be found in the `.gradle` directory. * Search for help online. There are many resources available online that can help you troubleshoot Gradle dependency issues. * Ask for help in the Gradle community. The Gradle community is very active and helpful. You can ask for help on the Gradle mailing list or the Gradle IRC channel. I hope this helps
Hi Raghav, I am using Gradle with Selenium & Cucumber in Eclipse IDE. But on editing/writing any feature files, my eclipse is getting frequently hang , it says Eclipse Not Responding! and finally need to close the eclipse and restart. Is there any solution for this, the same project is working in maven. Gradle 6.6.1 Eclipse: Version: Oxygen.3a Release (4.7.3a) Please help!.
I cannot import poi libraries after adding the poi dependency on gradle project. It doesn't give me an option to import XSSFWorkbook. Please help, I have been stuck for days.
Thanks for these videos, I think is missing something important since the beginning of this playlist: define the "GRADLE_USER_HOME" (same such as "M2_HOME" about Maven). And well about the former, was not covered in this configuration through the plugin too. Please can you cover the scenario about "Import an Existing Gradle Project"? The plugin does not work how is expected. Thanks again for the videos
@@RaghavPal Again, thanks for your videos! If you can consider show how configure the Gradle Settings dialog to put a custom repository location and then use it for importation, would be great
But before do this...make sure to install it ....download gradle file ,extract it and give its path to environment path variable..then open cmd and run gradle --version ....then it will show the gradle version installed in ur system. Then only it will work
hey can you help pls my project is being stucked at importing root project: run build after i tap finishing can you help with this tried everything reinstalling eclipse and gradle files and all idk whats the issue pls guide me
Ayush Quick Troubleshooting Steps Check Gradle Version: Ensure the version in gradle-wrapper.properties is compatible with Eclipse Clean and Rebuild: Go to Project > Clean... in Eclipse. Then, right-click your project and select Build Project Eclipse Settings: Verify the Gradle plugin is installed. Check the Java Build Path in project properties Build via Command Line: Run ./gradlew build in your project directory to see detailed errors Check Console for Errors: Look for any error messages in the Eclipse console during the build Update Dependencies: Ensure all dependencies in build.gradle are up to date Reinstall Gradle: If needed, download the latest version from the Gradle website -
Hi Raghav Ji Am do one test record in TestProject.io and then generate the code in java and import that into eclipse as gradle project and then how to run that from ecclipse?
hi sir, thank you for this video,,,, sir when i finish these steps it makes 2 folder 1 is lib and 2 myfirstgradleproject,, so my build.gradle is in lib folder can u explain what should i do now
@@RaghavPal I'm having the same problem. No build.gradle file in the project directory. I have a "gradle" folder, a "gradlew" file, a "gradlew.bat" file, and a "settings.gradle" file in my project directory. Inside the "gradle" folder is a "wrapper" folder, in which are "gradle-wrapper.jar" and "gradle-wrapper.properties" files. I'm on gradle 7.1.1. and jdk-16.0.1.
If you encounter an error stating that the path is too long while extracting a Gradle zip file, you can try the following solutions: 1. Shorten the extraction path: Move the Gradle zip file to a location with a shorter path. For example, extract it directly to the root of your C: drive or to a directory with a shorter name. 2. Use a different extraction tool: The default extraction tool in Windows may have limitations on path length. Try using a third-party extraction tool like 7-Zip or WinRAR, which often handle long path names better. 3. Enable long path support in Windows: By default, Windows has a maximum path length limitation of 260 characters. However, you can enable long path support in Windows 10 by modifying the system's Group Policy settings. Follow these steps: a. Open the Local Group Policy Editor by pressing Windows + R, typing "gpedit.msc," and hitting Enter. b. Navigate to "Local Computer Policy" > "Computer Configuration" > "Administrative Templates" > "System" > "Filesystem." c. Double-click on "Enable Win32 long paths" and set it to "Enabled." d. Close the Local Group Policy Editor and restart your computer. After enabling long path support, try extracting the Gradle zip file again. 4. Use a symbolic link: Create a symbolic link to the long path, giving it a shorter and more accessible name. You can use the `mklink` command in the Windows Command Prompt to create a symbolic link. Here's an example: ``` mklink /d C:\short-path C:\very-long-path ``` After creating the symbolic link, try extracting the Gradle zip file to the shorter path Remember to adapt the solutions based on your specific situation. The goal is to reduce the length of the extraction path or overcome the path length limitations imposed by the extraction tool or operating system
Hi Raghav i need your help and it's very important for me as i need to face real time interview within 2 days. Am unable to Run gradle proj. Can you help me out please
Hi Sandeep, you can share your knowledge with others and if you like, consider helping Animal Aid Unlimited or any animal welfare group near you, in any way you can
Hi Piyush, just check if you are in Project explorer or Package explorer. courses.cs.washington.edu/courses/cse332/10sp/sectionMaterials/week1/eclipse.html If you still do not get JRE etc. check this - stackoverflow.com/questions/4242641/jre-system-library-not-found-exception-in-eclipse Let me know if this resolves the issue
I have Gradle 6.8.2, but there is no "build.gradle" file in my Eclipse "Path Directory". The settings look totally different. Try updating Gradle and you will see that the project looks totally different now. Where is my "build.gradle" file? Please check this image below: i.ibb.co/hCbc13C/Gradle1.png
Hi Raghav, Is there any way to get the audit trial log history in Jmeter? Ex:- I created a script in jmeter and somebody changed the script. Is there any way to track the when its changed and who changed . Could you please help me.
Hi Vankayalapati, all this can be done when you use Version Control like Git. Just to get more info you can check here - ruclips.net/p/PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG
Hi Raghav, thank you for the Gradle series, it's really good and helpful. :) Just wanted to check if you'll be uploading more videos to this series like building a demo project using Gradle.
Hi Swapnav, pls check if this helps stackoverflow.com/questions/63371433/java-lang-nosuchmethoderror-org-testng-remote-abstractremotetestng-addlistener
Hi Raghav, thanks for the detailed explanation, which we always like and very useful. In order to be perfect, can you please add the following to the playlist?
5) configuring Gradle with Intelli-j with project structure for tests
6) How to configure Tasks and tests for a run for command line.
Basically, it will be more helpful if you can show us the best practices for an E2E Test / Task execution.
Again, Thanks for your effort
Sure I will do Madhu
Your English is very good. I was able to watch on high speed without missing a word.
So happy to know it, I know I need some improvements but its good to know you were able to follow
Raghav, Thank you and keep up the good work!
Most welcome!
Well explained. Thanks Raghav.
Thanks Rishu
This was a great video. Looking forward to future video using Gradle. I'm using Gradle for my master's research project.
Most welcome
i advice you to use intellij, will make your life much easier with syntax :)
thank you for the video
Sure Omar, I will do that in some sessions. I found Eclipse is used more widely
Nice explanation!! Easy to understand!! Thankyou!!
Most welcome
Awesome simple language explanation.... Zoom in / out was best for viewing on mobile 👍👍👍😊
Glad it helped Ravi
how do you run it? Print a "hello world or something". What run/debug configurations do you use?
I will add a session on this Andrei
Hi Raghav, can you make a video explaining how to migrate from Maven to Gradle or ant
Hi, I will plan
when i created 'GradleProject' with that one more preject created automatically called 'lib' ...i dont know why created another project automatically
Hi Raghu
By default, Gradle generates a GradleProject project with a lib directory inside the project. The lib directory contains the external library dependencies of your project, and it is generated by the Gradle build script. The build script manages these dependencies for your project by downloading the required libraries from remote repositories and including them in your project's classpath.
If you do not need the lib directory, you can safely delete it, or you can modify the build script to exclude the directory from the build.
@@RaghavPal sir please make a video on this problem , so many people getting this problem but they dont know how to resolve it.. in youtube also there is no solution...i hope you make a video on this issue
I will plan Raghu
Thanks Raghav
most welcome
Thank you Raghav.
Most welcome Shubham
Your explanation is very clear and easy to understand. Thank you!!!
Glad to hear that Kannan
Hi Raghav, Can we add Gradle & Maven in eclipse simultaneously in different projects ?
Yes we can
Thanks Raghav!
You're welcome
why don't you create a slack channel where all the QA's can come and discuss their thoughts since you have a really good youtube family
Hi Sandeep, I have to spend a lot of time going through all the messages here on a daily basis, May not be able to handle a diff platform.
Thank you very much!
Most welcome
Excellent. Thanks very much.
Glad it was helpful Alexander
awesome explaiing
Glad it was helpful!
Awesome Teaching!!
Thanks Shrinivas
thank you so much ,it was crystal clear
Most welcome Hellen
Great explanation, thanks!.
You're welcome Leonardo
Thanks a lot Sir !! Nice video
Most welcome
Hi Raghav
Thanks for the session. Do you have further details session for free or paid ?
Hi Tina, as of now 4 videos are there, I will plan to add more
Wow! Never understood this in one Go.
Glad it was useful Antra
Thank you so much! Explained everything very clearly :)
Glad it was helpful Rafi
Thank you for the video... Needs editing for the spelling of many many words on the text explanations.
I will check Bill, Thanks
excellent teaching step by step for all the users to understand. can you make video gradle with intelliji which is my suggestions thanks Raghav Sir
Sure Sathyavelu, will do that.
Can we convert existing gradle project which is simple java project to use spring framework?
Hi Sameer, I am not completely sure on that and will have to check online. See if this helps - stackoverflow.com/questions/56246122/convert-gradle-multi-project-to-springboot-fat-jar-application
Is there any additional video coming for gradle?when?
Yes Sweta, will be coming in some time
When i created the project i only had "gradle" folder, "gradlew", "gradlew.bat" and "settings.gradle"
Ok, will need to check, If you are able to continue with some online help. Go for it
perfect and very clear explanation
Glad you liked it Sai
Hello Raghav!
I have encountered a problem where my result differs from yours. After creating a gradle project I don't have a "build.gradle" project file, but rather a "build.gradle.kts", and in the package explorer all of the files you have with the gradle Icon, have a text icon for me and the kts extension. Would you please provide any advice for me to achieve the same result as in the video?
I have tried re-installing eclipse ide multiple times, and using cmd verified that I have Java and gradle installed correctly.
Any advice will help!
Thank you!
ok
Here's a simple and basic step-by-step solution to help you achieve the same result as in the video:
1. Check your Gradle settings
In your Eclipse IDE, go to Window > Preferences > Gradle. Make sure that the Gradle Distribution is set to the correct version (e.g., Gradle 7.1.1). Also, ensure that the Gradle User Home is set to a valid directory
2. Convert your project to use Groovy-based Gradle
Since you're seeing a build.gradle.kts file, it's likely that your project is using Kotlin-based Gradle (.kts extension). To switch to Groovy-based Gradle (.gradle extension), follow these steps:
Delete the build.gradle.kts file from your project.
Create a new file called build.gradle in the same location.
Copy the contents of the build.gradle.kts file into the new build.gradle file, and convert the Kotlin syntax to Groovy syntax
3. Update your project structure
In your Eclipse IDE, refresh your project by right-clicking on the project > Gradle > Refresh Gradle Project. This should update your project structure and icons
4. Verify your Gradle installation
As you've already done, verify that you have Java and Gradle installed correctly using the command line.
Additional tips
Make sure you're using the correct Eclipse IDE version and plugins for Gradle support
-
Hi I'm unable to add the dependencies means after adding the dependency selenium is not able to see in project and External Dependencies
Priyanka
There are a few possible reasons why you may not be able to see the Selenium dependency in your Gradle project in Eclipse:
* The dependency is not included in the build.gradle file.
* The dependency is not available in the Maven Central repository.
* The dependency is being blocked by a firewall or proxy.
To troubleshoot this issue, you can try the following:
1. Make sure that the dependency is included in the build.gradle file. For example, to add the Selenium WebDriver dependency, you would add the following line to the dependencies section of the build.gradle file:
```
dependencies {
implementation 'org.seleniumhq.selenium:selenium-java:4.5.0'
}
```
2. Make sure that the dependency is available in the Maven Central repository. You can check this by searching for the dependency on the Maven Central website.
3. Make sure that the dependency is not being blocked by a firewall or proxy. If you are using a firewall or proxy, you may need to configure it to allow access to the Maven Central repository.
Once you have verified that the dependency is included in the build.gradle file, that it is available in the Maven Central repository, and that it is not being blocked by a firewall or proxy, you should be able to see the dependency in your Eclipse project.
Here are some additional tips for troubleshooting Gradle dependency issues:
* Use the Gradle logs to help you identify the cause of the issue. Gradle logs can be found in the `.gradle` directory.
* Search for help online. There are many resources available online that can help you troubleshoot Gradle dependency issues.
* Ask for help in the Gradle community. The Gradle community is very active and helpful. You can ask for help on the Gradle mailing list or the Gradle IRC channel.
I hope this helps
Hi Raghav,
I am using Gradle with Selenium & Cucumber in Eclipse IDE. But on editing/writing any feature files, my eclipse is getting frequently hang , it says Eclipse Not Responding! and finally need to close the eclipse and restart.
Is there any solution for this, the same project is working in maven.
Gradle 6.6.1
Eclipse: Version: Oxygen.3a Release (4.7.3a)
Please help!.
Did you try to look at logs, Can also check with a new version
I cannot import poi libraries after adding the poi dependency on gradle project. It doesn't give me an option to import XSSFWorkbook. Please help, I have been stuck for days.
will need to check, try online examples too
Thanks for these videos, I think is missing something important since the beginning of this playlist: define the "GRADLE_USER_HOME" (same such as "M2_HOME" about Maven). And well about the former, was not covered in this configuration through the plugin too.
Please can you cover the scenario about "Import an Existing Gradle Project"?
The plugin does not work how is expected.
Thanks again for the videos
I will work on this Manuel
@@RaghavPal Again, thanks for your videos!
If you can consider show how configure the Gradle Settings dialog to put a custom repository location and then use it for importation, would be great
Sure
But before do this...make sure to install it ....download gradle file ,extract it and give its path to environment path variable..then open cmd and run gradle --version ....then it will show the gradle version installed in ur system. Then only it will work
Thanks for helping
Sir how to get gradle dependence and build gradle file on my adt eclipse andriod project
not tried will need to check some online examples
hey can you help pls my project is being stucked at importing root project: run build after i tap finishing can you help with this tried everything reinstalling eclipse and gradle files and all idk whats the issue pls guide me
Ayush
Quick Troubleshooting Steps
Check Gradle Version: Ensure the version in gradle-wrapper.properties is compatible with Eclipse
Clean and Rebuild:
Go to Project > Clean... in Eclipse.
Then, right-click your project and select Build Project
Eclipse Settings:
Verify the Gradle plugin is installed.
Check the Java Build Path in project properties
Build via Command Line:
Run ./gradlew build in your project directory to see detailed errors
Check Console for Errors: Look for any error messages in the Eclipse console during the build
Update Dependencies: Ensure all dependencies in build.gradle are up to date
Reinstall Gradle: If needed, download the latest version from the Gradle website
-
Hi Raghav Ji
Am do one test record in TestProject.io and then generate the code in java and import that into eclipse as gradle project and then how to run that from ecclipse?
Hi Karnan, did you check my TestProject series - automationstepbystep.com/
hi sir, thank you for this video,,,, sir when i finish these steps it makes 2 folder 1 is lib and 2 myfirstgradleproject,, so my build.gradle is in lib folder can u explain what should i do now
Hi Syed, I will add more videos for this
I am not getting selenium dependencies in the project and external dependencies after adding those
Hi Kadambala, are you getting any errors in logs, please check and try to see if any steps are missed, Can also verify with some online examples
thanks
Welcome Swati
I'm working on Eclipse 2021-03 (4.19.0). Why I haven't got the same folder's hierarchy when creating a Gradle Project?
Hi Amira, not sure if something changed in latest ver I will check on this,
@@RaghavPal I'm having the same problem. No build.gradle file in the project directory. I have a "gradle" folder, a "gradlew" file, a "gradlew.bat" file, and a "settings.gradle" file in my project directory. Inside the "gradle" folder is a "wrapper" folder, in which are "gradle-wrapper.jar" and "gradle-wrapper.properties" files. I'm on gradle 7.1.1. and jdk-16.0.1.
Hi I have this problem ......
java.lang.unsatisfiedlinkerror: unable to load library 'corefoundation'... how can I solve this problem
Hi are you using mac, Pls check github.com/qzind/tray/issues/683
Thanks for the video bt got an errors while extracting gradle zip which is path too long
If you encounter an error stating that the path is too long while extracting a Gradle zip file, you can try the following solutions:
1. Shorten the extraction path: Move the Gradle zip file to a location with a shorter path. For example, extract it directly to the root of your C: drive or to a directory with a shorter name.
2. Use a different extraction tool: The default extraction tool in Windows may have limitations on path length. Try using a third-party extraction tool like 7-Zip or WinRAR, which often handle long path names better.
3. Enable long path support in Windows: By default, Windows has a maximum path length limitation of 260 characters. However, you can enable long path support in Windows 10 by modifying the system's Group Policy settings. Follow these steps:
a. Open the Local Group Policy Editor by pressing Windows + R, typing "gpedit.msc," and hitting Enter.
b. Navigate to "Local Computer Policy" > "Computer Configuration" > "Administrative Templates" > "System" > "Filesystem."
c. Double-click on "Enable Win32 long paths" and set it to "Enabled."
d. Close the Local Group Policy Editor and restart your computer.
After enabling long path support, try extracting the Gradle zip file again.
4. Use a symbolic link: Create a symbolic link to the long path, giving it a shorter and more accessible name. You can use the `mklink` command in the Windows Command Prompt to create a symbolic link. Here's an example:
```
mklink /d C:\short-path C:\very-long-path
```
After creating the symbolic link, try extracting the Gradle zip file to the shorter path
Remember to adapt the solutions based on your specific situation. The goal is to reduce the length of the extraction path or overcome the path length limitations imposed by the extraction tool or operating system
It's nice but there is no information how to run Gradle project. please help
I will check and add
Hi Raghav i need your help and it's very important for me as i need to face real time interview within 2 days. Am unable to Run gradle proj. Can you help me out please
Hi Tej, pls check the logs and setup again
@@RaghavPal no no Raghav i tried, if you don't mind is it able to connect with Me so that you can understand my issue and it could be really helpful.
Hi Tej, may not be able to find a separate time to look into this, Try some online help
Sir I am not able to see gradle. Build in myfirstgradleproject file plz suggest any idea
Hi Sachin, Pls check if you did all the steps and setup
Hi Raghav love your videos is there any way I can support your channel
Hi Sandeep, you can share your knowledge with others and if you like, consider helping Animal Aid Unlimited or any animal welfare group near you, in any way you can
I am not able to see JRE system lib and project and external dependencies in my gradle directory. please help.
Hi Piyush, just check if you are in Project explorer or Package explorer. courses.cs.washington.edu/courses/cse332/10sp/sectionMaterials/week1/eclipse.html
If you still do not get JRE etc. check this - stackoverflow.com/questions/4242641/jre-system-library-not-found-exception-in-eclipse
Let me know if this resolves the issue
thank you for your lecture
You're welcome SeongBin
I have Gradle 6.8.2, but there is no "build.gradle" file in my Eclipse "Path Directory". The settings look totally different. Try updating Gradle and you will see that the project looks totally different now. Where is my "build.gradle" file? Please check this image below:
i.ibb.co/hCbc13C/Gradle1.png
Hi Aaron, I will check with the latest ver and try to add new videos, For now pls try some online help
Have you found a solution to it yet?
Is there selenium R2 tool is there if it is paid tool or not can u please tell me?
Hi Keerthi, selenium is free. There are other platforms that use selenium and may be free or commercial
Hi Raghav,
Is there any way to get the audit trial log history in Jmeter?
Ex:- I created a script in jmeter and somebody changed the script. Is there any way to track the when its changed and who changed .
Could you please help me.
Hi Vankayalapati, all this can be done when you use Version Control like Git. Just to get more info you can check here - ruclips.net/p/PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG
Can you show me how to do data driven in python using excel and one more how to debug using pytest in pycharm
Please
Please
Hi Nitin, I will do but can take some time, For now you can try online help
Hi Raghav, thank you for the Gradle series, it's really good and helpful. :)
Just wanted to check if you'll be uploading more videos to this series like building a demo project using Gradle.
Yes Nitin, I will work on this
Gradle + andriod app in eclipse
I will check and plan some session
@@RaghavPal sir make video for adt eclipse Android app create with using online api like changing dependencies
I will do
Hi raghav
Pls tell me Nitin
Can you please help?
Please tell me your issue in detail
build.gradle does not exist
Hi Amine, will need to check the steps again. Can try some online examples
Hi Iam getting error like this
'void org.testng.remote.AbstractRemoteTestNG.addListener(org.testng.ISuiteListener)' please help
Hi Swapnav, pls check if this helps stackoverflow.com/questions/63371433/java-lang-nosuchmethoderror-org-testng-remote-abstractremotetestng-addlistener
Thankyou
Welcome Pankaj