You will need to have the Lombok Plugin installed, and the Gradle and JUnit plugins are highly recommended.
- Clone the repository.
- Start IntelliJ. From the welcome screen, select Import Project. Locate and select the
build.gradle
file in the repository root, then press OK. - Click OK in the Import Project from Gradle window.
- If asked about overwriting the
.idea
project file, select Yes.
The project is now imported into IntelliJ.
To be able to run the project, we need to add a run configuration.
- From the menu select Run->Edit configurations. Click the plus (+) button and select Gradle.
- Set the following values:
- Name: OpenLogicGateSimulator
- Gradle project: Press the folder icon and select the OpenLogicGateSimulator project.
- Tasks:
run
(autocompletion should list this task).
- Press Apply, then OK. You can now select the configuration and run it.
Instructions for setting up and running the check gradle task:
- From the menu select Run->Edit configurations. Click the plus (+) button and select Gradle.
- Set the following values:
- Name: OLGS checks
- Gradle project: Press the folder icon and select the OpenLogicGateSimulator project.
- Tasks:
clean check
.
- Press Apply, then OK. You can now select the configuration and run it.
Reports from the different tools can be found in build/reports/.
Instructions for setting up and running the tests and generating a report:
- From the menu select Run->Edit configurations. Click the plus (+) button and select Gradle.
- Set the following values:
- Name: OLGS coverage report
- Gradle project: Press the folder icon and select the OpenLogicGateSimulator project.
- Tasks:
test jacocoTestReport
.
- Press Apply, then OK. You can now select the configuration and run it.
The coverage report can be found in build/reports/jacoco/test/html. Open index.html to browse.
Documentation files, including RAD, SDD, meeting protocols and diagrams can be found in the docs/ directory.
The project includes nearly all dependencies through Gradle, but one dependency that is not available there is included in the repository tree at [src/main/java/net/javainthebox/caraibe/svg]. The group would like to point out that this code is not written by us, and should therefore also be excluded from gitinspector and other checks.