Skip to content

Obtain the Source Code, Build and Test

Rikka0_0小六花 edited this page May 13, 2020 · 2 revisions

Requirements

JDK & Git must be installed and accessible.

You can use the gradle wrapper included (gradlew) instead of manually installing another gradle.

Clone Project

On Windows, open either Command Prompt or PowerShell, then run the following commands. Linux users should give the gradlew executable access before running gradlew: "chmod +x gradlew" and replace "gradlew.bat" with "./gradlew". For mac users, eplace "gradlew.bat" with "bash gradlew".

Commands

$ git clone https://github.com/RoyalAliceAcademyOfSciences/SimElectricity.git
$ git submodule update --init
$ cd SimElectricity/
$ gradlew.bat runData

Task "runData" will always return with fail, ignore it as it is normal.

Build

Commands $ gradlew build

Artifacts

You can collect artifacts at build\libs.

Commands

$ cd build/libs/
$ ls -l

Clone this wiki locally