We welcome anyone to help contribute to the future of Snipping Tool++ and will gladly review any pull requests.
In order to build ST++ you will need to have the Oracle JDK 1.7 installed and the environment variable JAVA_HOME must be set to the root directory of its installation path.
- To build, execute
gradlew jar.
You do not need gradle installed for this command to work. The first time it is ran, it will download a project specific version of gradle and place it in .gradle at the root of the project.
The first time you run this will take awhile as it must download gradle as well as the third party libraries. These are then cached so future builds will be quicker.
- To run tests, execute
gradlew test.
If you want a detailed coverage report, execute 'gradlew test jacoco`.
-
To generate eclipse project files, execute
gradlew eclipse. -
Import the project in to eclipse.
If you plan on submitting a pull request, please format your code using our coding style.
-
Open the
Windows -> Preferences -
Under
Java -> Code Style -> Formatterclick onImport... -
Browse to the
eclipse-format.xmlfile at the root of the repository. -
Save the settings and use
ctrl-shift-fto format any added source.
In addition to using the eclipse formatter, please use ctrl-shift-o to organize the import statements and remove unneeded ones.
It is recommended to install the gradle plugin for eclipse so you can run gradle tasks from within eclipse and refresh the project settings after editing the build.gradle file.
-
It is available through eclipse's
Help -> Install New Software..dialog. -
Use the download site
http://dist.springsource.com/release/TOOLS/gradle -
Check the
Gradle IDEcheckbox under theExtensions / Gradle Integrationnode.