Project

General

Profile

Building » History » Revision 9

Revision 8 (Sergey Smolov, 01/11/2020 04:31 PM) → Revision 9/16 (Sergey Smolov, 01/11/2020 04:32 PM)

h1. Building 

 The project build system is based on For Retrascope building and JUnit tests running we use "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). 
 For Windows OS _gradlew.bat_ script should be used, for Linux-based OS _gradlew_ script should be used. 

 h2. From command line 

 To compile main classes run: 
 <pre> 
 gradle classes 
 </pre> 

 To compile testClasses run: 
 <pre> 
 gradle testClasses 
 </pre> 

 To run all unit tests run: 
 <pre> 
 gradle test 
 </pre> 

 To list all Gradle commands run: 
 <pre> 
 gradle tasks 
 </pre> 

 h2. From Eclipse IDE 

 # Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE. 
 # Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it: 
 <pre> 
 allprojects 
 { 
   apply plugin: 'eclipse' 

   it.eclipse 
   { 
     classpath.downloadJavadoc = true 
   } 
 } 
 </pre> 
 # Import Retrascope sources into Eclipse workspace: 
 * Use the menu item "File/Import...". 
 * Choose "Gradle/Gradle Project". 
 * Select the Retrascope directory as the root directory, press "Next". 
 * Select the "Gradle wrapper (recommended)" import option. 
 * Press the "Finish" button: the project will be opened in the Eclipse IDE. 

 h2. From IntelliJ IDEA 

 # Use the "Import Project" menu item. 
 # Select the Retrascope directory, press "OK". 
 # Select "Import project from external model" -> "Gradle" item, press "Finish".