Checking out the code
Create a remote fork of https://github.com/Taskana/TaskanaSimpleHistory/
Create a local clone
Code Block | ||
---|---|---|
| ||
git clone https://github.com/<yourname>/Taskana/TaskanaSimpleHistory.git |
Create a remote for the upstream project so that it is later easier to retrieve changes from the main repository.
Code Block | ||
---|---|---|
| ||
cd taskana
git remote add upstream https://github.com/Taskana/TaskanaSimpleHistory.git |
Build the plugin
Taskana history library
Code Block | ||
---|---|---|
| ||
./mvnw clean install -f lib |
...
REST API
with console:
Code Block | ||
---|---|---|
| ||
./mvnw spring-boot:run -P history.plugin -pl :taskana-simplehistory-rest-spring-example |
...
-boot |
with Intellij:
- Open the Maven tab on the right
- Open the first entry 'Profiles'
- Select the checkbox 'history.plugin'
- Start ExampleRestApplication
REST API will be available: http://localhost:8080/v1/task-history-event
How to include History service into taskana application?
Since history service is thought to be a plugin we have to include it into taskana application following next simple steps:
...