Project

General

Profile

Building » History » Version 9

Sergey Smolov, 01/11/2020 04:32 PM

1 1 Sergey Smolov
h1. Building
2
3 9 Sergey Smolov
The project build system is based on "Gradle":http://gradle.org/. Please either install it first or use wrapper script (we use "Gradle 4.10.3":https://docs.gradle.org/4.10.3/release-notes.html in the wrapper, by the way).
4 8 Sergey Smolov
For Windows OS _gradlew.bat_ script should be used, for Linux-based OS _gradlew_ script should be used.
5 1 Sergey Smolov
6 8 Sergey Smolov
h2. From command line
7 1 Sergey Smolov
8
To compile main classes run:
9
<pre>
10
gradle classes
11
</pre>
12
13
To compile testClasses run:
14
<pre>
15
gradle testClasses
16
</pre>
17
18
To run all unit tests run:
19
<pre>
20
gradle test
21
</pre>
22
23
To list all Gradle commands run:
24
<pre>
25
gradle tasks
26
</pre>
27
28 8 Sergey Smolov
h2. From Eclipse IDE
29 1 Sergey Smolov
30
# Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE.
31
# Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it:
32
<pre>
33
allprojects
34
{
35 5 Sergey Smolov
  apply plugin: 'eclipse'
36 1 Sergey Smolov
37
  it.eclipse
38
  {
39 3 Sergey Smolov
    classpath.downloadJavadoc = true
40 1 Sergey Smolov
  }
41
}
42
</pre>
43
# Import Retrascope sources into Eclipse workspace:
44
* Use the menu item "File/Import...".
45
* Choose "Gradle/Gradle Project".
46 8 Sergey Smolov
* Select the Retrascope directory as the root directory, press "Next".
47 1 Sergey Smolov
* Select the "Gradle wrapper (recommended)" import option.
48
* Press the "Finish" button: the project will be opened in the Eclipse IDE.
49 8 Sergey Smolov
50
h2. From IntelliJ IDEA
51
52
# Use the "Import Project" menu item.
53
# Select the Retrascope directory, press "OK".
54
# Select "Import project from external model" -> "Gradle" item, press "Finish".