Project

General

Profile

Building » History » Version 7

Sergey Smolov, 10/04/2019 06:47 PM

1 1 Sergey Smolov
h1. Building
2
3 6 Sergey Smolov
For Retrascope 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 1 Sergey Smolov
5 4 Sergey Smolov
h2. Building and running Retrascope from command line
6 1 Sergey Smolov
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 4 Sergey Smolov
h2. Building and running Retrascope from Eclipse IDE
28 1 Sergey Smolov
29
# Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE.
30
# Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it:
31
<pre>
32
allprojects
33
{
34 5 Sergey Smolov
  apply plugin: 'eclipse'
35 1 Sergey Smolov
36
  it.eclipse
37
  {
38 3 Sergey Smolov
    classpath.downloadJavadoc = true
39 1 Sergey Smolov
  }
40
}
41
</pre>
42
# Import Retrascope sources into Eclipse workspace:
43
* Use the menu item "File/Import...".
44
* Choose "Gradle/Gradle Project".
45 7 Sergey Smolov
* Select the "retrascope" directory as the root directory, press "Next".
46 1 Sergey Smolov
* Select the "Gradle wrapper (recommended)" import option.
47
* Press the "Finish" button: the project will be opened in the Eclipse IDE.