Are you all set up? If not check how to prepare your backpack for Java hike.
Read on if you’re ready to go.
Get the code base
I’ve prepared for your first Java Gradle Project. You can get it from my GitHub repository (and no, you don’t have to register): https://github.com/agazet/javaLearningPath
Click Clone or download and copy the link to the clipboard as visible below.
Set up Git Repository in Eclipse
- Start Eclipse and select a workspace.
- I recommend you create a separate folder for this learning path under your workspace path (I’m using Windows OS right now and my path is: D:\private\java\workspace\learningPath). you can type the folder name, it’ll create automatically
- Open Git Perspective
- Go to Window > Perspective > Open Perspective > Other…
- Select Git
- Open (it should open automatically)
- In the Git Repositories view choose Clone git repository and paste https://github.com/agazet/javaLearningPath.git (the one you copied to get the code base) into URI
- You can leave User and Password empty for now
- Set the directory on the next screen
- Finish
- Right click on your repository > Import projects…
- As import source set your local git repository (the directory you set in 5. )
- Finish
Import the Gradle Project
Remove imported project from Eclipse
- Go to Java EE perspective (perspective selector is in right upper corner)
- In project explorer, you can see the project now.
- Right click and choose delete.
- Make sure, that project content remains on disk (must be unchecked)
- Click OK
Import the projects as Gradle Project
- Go to File > Import…
- Choose Existing Gradle Project and click next
- Click next on Welcome screen
- On Import Gradle Project screen set the project root directory to the Calculator in your project directory (as in Set up Git Repository in Eclipse 5. e.g.: D:\private\java\jumpstart\javaLearningPath\Calculator )
- Finish (or leave Gradle Wrapper on Options screen if you got there)
- Now you’re all set up.
Let’s take a look at the project.
no idea what I’ve actually done right now… but succesfully 😀
waiting for next todos 🙂 which will explain what is it all for (I mean all these procedures at the beginning, usage of Gradle etc.)
LikeLiked by 1 person
Keep on reading. I was the same. When I set up my first fully fledged project I was all lost and whiny… Now I can get on 😉
LikeLike
Reblogged this on Potato Coding Adventure.
LikeLike