Gradle Beginner Tutorial 4 | How to create Gradle Project in Eclipse from Scratch | Windows & Mac

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 140

  • @madhumuppala2274
    @madhumuppala2274 3 года назад +4

    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

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Sure I will do Madhu

  • @SaintSaint
    @SaintSaint 2 года назад

    Your English is very good. I was able to watch on high speed without missing a word.

    • @RaghavPal
      @RaghavPal  2 года назад

      So happy to know it, I know I need some improvements but its good to know you were able to follow

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 2 года назад

    Raghav, Thank you and keep up the good work!

  • @donatesmile202
    @donatesmile202 4 года назад +1

    Well explained. Thanks Raghav.

  • @MsEady123
    @MsEady123 3 года назад

    This was a great video. Looking forward to future video using Gradle. I'm using Gradle for my master's research project.

  • @omarshawky5859
    @omarshawky5859 4 года назад +2

    i advice you to use intellij, will make your life much easier with syntax :)
    thank you for the video

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Sure Omar, I will do that in some sessions. I found Eclipse is used more widely

  • @sreenivasl221
    @sreenivasl221 3 года назад

    Nice explanation!! Easy to understand!! Thankyou!!

  • @rpmdelhi
    @rpmdelhi 2 года назад

    Awesome simple language explanation.... Zoom in / out was best for viewing on mobile 👍👍👍😊

  • @eightrice
    @eightrice 3 года назад

    how do you run it? Print a "hello world or something". What run/debug configurations do you use?

    • @RaghavPal
      @RaghavPal  3 года назад

      I will add a session on this Andrei

  • @Mr5nan
    @Mr5nan 3 года назад +1

    Hi Raghav, can you make a video explaining how to migrate from Maven to Gradle or ant

  • @Raghuchebolu
    @Raghuchebolu Год назад +1

    when i created 'GradleProject' with that one more preject created automatically called 'lib' ...i dont know why created another project automatically

    • @RaghavPal
      @RaghavPal  Год назад +1

      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.

    • @Raghuchebolu
      @Raghuchebolu Год назад +1

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

    • @RaghavPal
      @RaghavPal  Год назад

      I will plan Raghu

  • @aylinbekem3701
    @aylinbekem3701 2 года назад

    Thanks Raghav

  • @shubhamdeshmukh9854
    @shubhamdeshmukh9854 4 года назад

    Thank you Raghav.

    • @RaghavPal
      @RaghavPal  4 года назад

      Most welcome Shubham

  • @kannanparamasivam5331
    @kannanparamasivam5331 4 года назад

    Your explanation is very clear and easy to understand. Thank you!!!

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad to hear that Kannan

  • @ashirbadsatapathy3920
    @ashirbadsatapathy3920 4 года назад +1

    Hi Raghav, Can we add Gradle & Maven in eclipse simultaneously in different projects ?

  • @jahidulIslam-pb4hn
    @jahidulIslam-pb4hn 4 года назад

    Thanks Raghav!

  • @sandeepnegi4939
    @sandeepnegi4939 4 года назад +1

    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

    • @RaghavPal
      @RaghavPal  4 года назад

      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.

  • @akshajgotimukul204
    @akshajgotimukul204 3 года назад

    Thank you very much!

  • @alexandeap
    @alexandeap 4 года назад

    Excellent. Thanks very much.

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad it was helpful Alexander

  • @axelboy9080
    @axelboy9080 3 года назад

    awesome explaiing

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad it was helpful!

  • @shrinivasmahabole8872
    @shrinivasmahabole8872 4 года назад

    Awesome Teaching!!

  • @hellenweldeab6782
    @hellenweldeab6782 4 года назад

    thank you so much ,it was crystal clear

  • @leonardobaini702
    @leonardobaini702 4 года назад

    Great explanation, thanks!.

    • @RaghavPal
      @RaghavPal  4 года назад

      You're welcome Leonardo

  • @01cybrain
    @01cybrain 4 года назад

    Thanks a lot Sir !! Nice video

  • @tinadatta7641
    @tinadatta7641 3 года назад

    Hi Raghav
    Thanks for the session. Do you have further details session for free or paid ?

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Tina, as of now 4 videos are there, I will plan to add more

  • @antraverma3297
    @antraverma3297 4 года назад

    Wow! Never understood this in one Go.

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad it was useful Antra

  • @rafi2022
    @rafi2022 4 года назад

    Thank you so much! Explained everything very clearly :)

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad it was helpful Rafi

  • @billnewsr.9314
    @billnewsr.9314 2 года назад

    Thank you for the video... Needs editing for the spelling of many many words on the text explanations.

    • @RaghavPal
      @RaghavPal  2 года назад

      I will check Bill, Thanks

  • @sathya-enjoy_lifetothefullest
    @sathya-enjoy_lifetothefullest 4 года назад +1

    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

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Sure Sathyavelu, will do that.

  • @sameerforyou01
    @sameerforyou01 4 года назад

    Can we convert existing gradle project which is simple java project to use spring framework?

    • @RaghavPal
      @RaghavPal  4 года назад

      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

  • @swetakumari-ns6bo
    @swetakumari-ns6bo 4 года назад

    Is there any additional video coming for gradle?when?

    • @RaghavPal
      @RaghavPal  4 года назад

      Yes Sweta, will be coming in some time

  • @Skreperiukas
    @Skreperiukas 3 года назад

    When i created the project i only had "gradle" folder, "gradlew", "gradlew.bat" and "settings.gradle"

    • @RaghavPal
      @RaghavPal  3 года назад

      Ok, will need to check, If you are able to continue with some online help. Go for it

  • @saikrishnabadineedi3458
    @saikrishnabadineedi3458 4 года назад

    perfect and very clear explanation

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad you liked it Sai

  • @mystic2223
    @mystic2223 2 месяца назад

    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!

    • @RaghavPal
      @RaghavPal  2 месяца назад

      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
      -

  • @priyankamane6706
    @priyankamane6706 Год назад

    Hi I'm unable to add the dependencies means after adding the dependency selenium is not able to see in project and External Dependencies

    • @RaghavPal
      @RaghavPal  Год назад

      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

  • @AGOF_Vlogs
    @AGOF_Vlogs 3 года назад

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

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Did you try to look at logs, Can also check with a new version

  • @shoshKid
    @shoshKid 2 года назад

    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.

    • @RaghavPal
      @RaghavPal  2 года назад

      will need to check, try online examples too

  • @ManuelJordan317
    @ManuelJordan317 4 года назад

    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
      @RaghavPal  4 года назад +1

      I will work on this Manuel

    • @ManuelJordan317
      @ManuelJordan317 4 года назад

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

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Sure

  • @codewithnabinghosh7185
    @codewithnabinghosh7185 2 года назад

    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

  • @21flame72
    @21flame72 2 года назад

    Sir how to get gradle dependence and build gradle file on my adt eclipse andriod project

    • @RaghavPal
      @RaghavPal  2 года назад

      not tried will need to check some online examples

  • @ayushjha1499
    @ayushjha1499 Месяц назад

    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

    • @RaghavPal
      @RaghavPal  Месяц назад

      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
      -

  • @Eshaanmom
    @Eshaanmom 3 года назад

    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?

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Karnan, did you check my TestProject series - automationstepbystep.com/

  • @syedkamranshah898
    @syedkamranshah898 3 года назад

    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
      @RaghavPal  3 года назад

      Hi Syed, I will add more videos for this

  • @kadambalapavan2280
    @kadambalapavan2280 3 года назад

    I am not getting selenium dependencies in the project and external dependencies after adding those

    • @RaghavPal
      @RaghavPal  3 года назад

      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

  • @littleminds121
    @littleminds121 4 года назад

    thanks

  • @amiramohammedi85
    @amiramohammedi85 3 года назад

    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?

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Amira, not sure if something changed in latest ver I will check on this,

    • @billtaffel7301
      @billtaffel7301 3 года назад +1

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

  • @suaadalsaqri218
    @suaadalsaqri218 3 года назад

    Hi I have this problem ......
    java.lang.unsatisfiedlinkerror: unable to load library 'corefoundation'... how can I solve this problem

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi are you using mac, Pls check github.com/qzind/tray/issues/683

  • @Miss_dreamer24
    @Miss_dreamer24 Год назад

    Thanks for the video bt got an errors while extracting gradle zip which is path too long

    • @RaghavPal
      @RaghavPal  Год назад

      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

  • @ChandanYadav-mr9he
    @ChandanYadav-mr9he 3 года назад

    It's nice but there is no information how to run Gradle project. please help

    • @RaghavPal
      @RaghavPal  3 года назад

      I will check and add

  • @tejrockx8756
    @tejrockx8756 3 года назад

    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

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Tej, pls check the logs and setup again

    • @tejrockx8756
      @tejrockx8756 3 года назад

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

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Tej, may not be able to find a separate time to look into this, Try some online help

  • @sachinpoonia4989
    @sachinpoonia4989 3 года назад

    Sir I am not able to see gradle. Build in myfirstgradleproject file plz suggest any idea

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Sachin, Pls check if you did all the steps and setup

  • @sandeepnegi4939
    @sandeepnegi4939 4 года назад

    Hi Raghav love your videos is there any way I can support your channel

    • @RaghavPal
      @RaghavPal  4 года назад

      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

  • @piyushsinha3756
    @piyushsinha3756 4 года назад

    I am not able to see JRE system lib and project and external dependencies in my gradle directory. please help.

    • @RaghavPal
      @RaghavPal  4 года назад

      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

  • @seongbinjeon5189
    @seongbinjeon5189 4 года назад

    thank you for your lecture

    • @RaghavPal
      @RaghavPal  4 года назад

      You're welcome SeongBin

  • @AaronEstebanSEO
    @AaronEstebanSEO 3 года назад

    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

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Aaron, I will check with the latest ver and try to add new videos, For now pls try some online help

    • @timfehlau2014
      @timfehlau2014 3 года назад

      Have you found a solution to it yet?

  • @keerthikonanki3446
    @keerthikonanki3446 4 года назад

    Is there selenium R2 tool is there if it is paid tool or not can u please tell me?

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Keerthi, selenium is free. There are other platforms that use selenium and may be free or commercial

  • @vankayalapatisrihari1718
    @vankayalapatisrihari1718 4 года назад

    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.

    • @RaghavPal
      @RaghavPal  4 года назад

      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

  • @sagarnitin08
    @sagarnitin08 4 года назад

    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

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Nitin, I will do but can take some time, For now you can try online help

  • @nitinvishwakarma788
    @nitinvishwakarma788 4 года назад

    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.

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Yes Nitin, I will work on this

  • @21flame72
    @21flame72 2 года назад

    Gradle + andriod app in eclipse

    • @RaghavPal
      @RaghavPal  2 года назад

      I will check and plan some session

    • @21flame72
      @21flame72 2 года назад +1

      @@RaghavPal sir make video for adt eclipse Android app create with using online api like changing dependencies

    • @RaghavPal
      @RaghavPal  2 года назад

      I will do

  • @sagarnitin08
    @sagarnitin08 4 года назад

    Hi raghav

  • @Miss_dreamer24
    @Miss_dreamer24 Год назад

    Can you please help?

    • @RaghavPal
      @RaghavPal  Год назад

      Please tell me your issue in detail

  • @amineguettat4514
    @amineguettat4514 2 года назад

    build.gradle does not exist

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Amine, will need to check the steps again. Can try some online examples

  • @swapnav532
    @swapnav532 Год назад

    Hi Iam getting error like this
    'void org.testng.remote.AbstractRemoteTestNG.addListener(org.testng.ISuiteListener)' please help

    • @RaghavPal
      @RaghavPal  Год назад

      Hi Swapnav, pls check if this helps stackoverflow.com/questions/63371433/java-lang-nosuchmethoderror-org-testng-remote-abstractremotetestng-addlistener

  • @pankajgoswami8184
    @pankajgoswami8184 4 года назад

    Thankyou