mkdir time-recording-data
git clone https://github.com/itsallcode/white-rabbit.git
cd white-rabbit
# Configure
echo "data = $HOME/time-recording-data/" > $HOME/.whiterabbit.properties
# Build WhiteRabbit and install plugins to $HOME/.whiterabbit/plugins/
./gradlew build installPlugins
# To skip unit and ui-tests, run
./gradlew build installPlugins -x test -x uiTest
# Run
java -jar product/build/libs/white-rabbit-fx-<version>[-SNAPSHOT].jar
# Build and run, loading plugins from $HOME/.whiterabbit/plugins/
./gradlew run
# Build and run including plugins. Useful when developing plugins.
# Make sure to remove unwanted plugins from $HOME/.whiterabbit/plugins/
./gradlew runWithPlugins
# Build and run the shadowJar of the final product.
./gradlew runProduct
Run all tests:
./gradlew check
Run only UI-Tests:
# Headless (default)
./gradlew check
# Not Headless (don't move mouse while running!)
./gradlew check -PuiTestsHeadless=false
Run a single test:
./gradlew uiTest -i --tests AboutDialogUiTest
./gradlew dependencyUpdates
Precondition for Windows: Install the WiX Toolset and add it to the PATH
.
./gradlew jpackage --info
- Checkout the
main
branch, create a new branch. - Update version number in
build.gradle
andREADME.md
. - Add changes in new version to
CHANGELOG.md
. - Commit and push changes.
- Create a new pull request, have it reviewed and merged to
main
.
- Start the release workflow
- Run command
gh workflow run release.yml --repo itsallcode/white-rabbit --ref main
- or go to GitHub Actions and start the
release.yml
workflow on branchmain
.
- Update title and description of the newly created GitHub release.
- Close the milestone in GitHub.
- After some time the release will be available at Maven Central.