Project

General

Profile

Actions

Building » History » Revision 9

« Previous | Revision 9/16 (diff) | Next »
Sergey Smolov, 01/11/2020 04:32 PM


Building

The project build system is based on Gradle. Please either install it first or use wrapper script (we use Gradle 4.10.3 in the wrapper, by the way).
For Windows OS gradlew.bat script should be used, for Linux-based OS gradlew script should be used.

From command line

To compile main classes run:

gradle classes

To compile testClasses run:

gradle testClasses

To run all unit tests run:

gradle test

To list all Gradle commands run:

gradle tasks

From Eclipse IDE

  1. Install Buildship Gradle integration plugin for Eclipse IDE.
  2. Create init.gradle file in the $HOME/.gradle directory and write the following to it:
    allprojects
    {
      apply plugin: 'eclipse'
    
      it.eclipse
      {
        classpath.downloadJavadoc = true
      }
    }
    
  3. 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.

From IntelliJ IDEA

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

Updated by Sergey Smolov over 4 years ago · 9 revisions