Note we will use for this project:
- Java 1.7
- Gradle for build, test, run
- JUnit 4
-
Download gradle binaries
https://services.gradle.org/distributions/gradle-2.4-bin.zip
-
Add gradle to you environment path
GRADLE_HOME/bin to your PATH environment variable
-
Make sure it works
Navigate to the git repo in your terminal.
cd ninefoo/ gradle build
-
Set dev env
-
Eclipse
-
Generate your project file and settings files with gradle
gradle eclipse
-
Get the gradle
plugin
:https://marketplace.eclipse.org/content/gradle-integration-eclipse-44
-
Open eclipse and import the project as a gradle project.
-
-
IntelliJ
- The gradle plugin is usually allready installed.
- Import project as a gradle project
-
-
Common gradle commands
gradle build
will build and test the project.gradle test
gradle run
run the main application.gradle tasks
for all the possible thing you can do with gradle.
For a gradle quickstart: https://docs.gradle.org/current/userguide/tutorial_java_projects.html
For better and clearer communication in the issues,
Please take 3 minutes to read mastering-markdown!
Especially for code syntax highlting:
```java
System.out.println('ninefoo')
```
And for mentions:
@mention
git clone theUrlOfTheRepo
git pull Retreive changes from the remote repo to your local copy, always pull remote changes before you start working.
git status
git add myFiles
git commit -m "the commit message inside quotes"
git push origin myBranch
git diff - see your changes before commiting
git branch - Create your own branch.
git push --set-upstream origin - Push origin on GitHub.
git checkout - Switch to a branch.
git log - See previous commits