Building » History » Version 1
Sergey Smolov, 12/05/2019 07:12 PM
1 | 1 | Sergey Smolov | h1. Building |
---|---|---|---|
2 | |||
3 | For project building and JUnit tests running we use "Gradle":http://gradle.org/. Please install it first (we use "Gradle 4.10.3":https://docs.gradle.org/4.10.3/release-notes.html in the wrapper script, by the way). |
||
4 | |||
5 | h2. Building and running from command line |
||
6 | |||
7 | To compile main classes run: |
||
8 | <pre> |
||
9 | gradle classes |
||
10 | </pre> |
||
11 | |||
12 | To compile testClasses run: |
||
13 | <pre> |
||
14 | gradle testClasses |
||
15 | </pre> |
||
16 | |||
17 | To run all unit tests run: |
||
18 | <pre> |
||
19 | gradle test |
||
20 | </pre> |
||
21 | |||
22 | To list all Gradle commands run: |
||
23 | <pre> |
||
24 | gradle tasks |
||
25 | </pre> |
||
26 | |||
27 | h2. Building and running from Eclipse IDE |
||
28 | |||
29 | # Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE (if Gradle support has not provided by the IDE already). |
||
30 | # Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it: |
||
31 | <pre> |
||
32 | allprojects |
||
33 | { |
||
34 | apply plugin: 'eclipse' |
||
35 | |||
36 | it.eclipse |
||
37 | { |
||
38 | classpath.downloadJavadoc = true |
||
39 | } |
||
40 | } |
||
41 | </pre> |
||
42 | # Import Retrascope sources into Eclipse workspace: |
||
43 | * Use the menu item "File/Import...". |
||
44 | * Choose "Gradle/Gradle Project". |
||
45 | * Select the "retrascope" directory as the root directory, press "Next". |
||
46 | * Select the "Gradle wrapper (recommended)" import option. |
||
47 | * Press the "Finish" button: the project will be opened in the Eclipse IDE. |