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 jfxui/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
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 -PreleaseVersion=x.y.z
This will build WhiteRabbit and publish the plugin api to Maven Central.
Add the following to your ~/.gradle/gradle.properties
:
```properties
ossrhUsername=<your maven central username>
ossrhPassword=<your maven central passwort>
signing.keyId=<gpg key id (last 8 chars)>
signing.password=<gpg key password>
signing.secretKeyRingFile=<path to secret keyring file>
```
-
Make sure the Changelog is updated
-
Run the following command:
./gradlew clean build publish closeAndReleaseRepository --info -PreleaseVersion=<version>
The release will be written to
jfxui/build/libs/white-rabbit-fx-<version>.jar
. Snapshots will be available at oss.sonatype.org. -
Create a new release in GitHub and attach the built jar.
-
Close the milestone in GitHub.
-
After some time the release will be available at Maven Central.