standardized JAR naming to gittally.jar (version-free); updated scripts, docs, and build config to align; added --version support via BuildProperties

This commit is contained in:
Michael Hoennig
2026-07-08 22:45:23 +02:00
parent d0b38c557a
commit 347efc16c5
9 changed files with 38 additions and 18 deletions
+4 -4
View File
@@ -161,13 +161,13 @@ Ob ein neuer Commit den laufenden Build seines Branches stattdessen abbrechen so
### Initialisierung
```bash
java -jar build/libs/gittally-0.1.0-SNAPSHOT.jar init
java -jar build/libs/gittally.jar init
```
### Serverstart
```bash
java -jar build/libs/gittally-0.1.0-SNAPSHOT.jar server
java -jar build/libs/gittally.jar server
```
Für den Dauerbetrieb als systemd-User-Service siehe [deployment.md](deployment.md) (`init --systemd`).
@@ -175,8 +175,8 @@ Für den Dauerbetrieb als systemd-User-Service siehe [deployment.md](deployment.
### Konfigurationsanzeige
```bash
java -jar build/libs/gittally-0.1.0-SNAPSHOT.jar config:print
java -jar build/libs/gittally-0.1.0-SNAPSHOT.jar config:print --full
java -jar build/libs/gittally.jar config:print
java -jar build/libs/gittally.jar config:print --full
```
## Erweiterungen
+3 -3
View File
@@ -23,7 +23,7 @@ First, in `<gittally-root>`, build the application to generate the executable JA
Then run `init` using the generated JAR (not the `-plain.jar`):
```bash
java -jar <gittally-root>/build/libs/gittally-0.1.0-SNAPSHOT.jar init
java -jar <gittally-root>/build/libs/gittally.jar init
```
`init` performs the following steps in order:
@@ -120,11 +120,11 @@ Until then, a Java runtime must be available on the host.
2. Review `.gittally.yml` and add/adjust any branch build settings.
3. Verify the effective configuration:
```bash
java -jar build/libs/gittally-0.1.0-SNAPSHOT.jar config:print --full
java -jar build/libs/gittally.jar config:print --full
```
4. Start the server:
```bash
java -jar build/libs/gittally-0.1.0-SNAPSHOT.jar server
java -jar build/libs/gittally.jar server
```
5. For permanent operation, install the systemd user service described in [deployment.md](deployment.md).
+2 -2
View File
@@ -14,8 +14,8 @@ The repo install config (`.git/gittally/.gittally.yml`) wins on any key present
## Inspect the Effective Config
```bash
java -jar build/libs/gittally-0.1.0-SNAPSHOT.jar config:print # only explicitly set values
java -jar build/libs/gittally-0.1.0-SNAPSHOT.jar config:print --full # all values including defaults
java -jar build/libs/gittally.jar config:print # only explicitly set values
java -jar build/libs/gittally.jar config:print --full # all values including defaults
```
## `.gittally.yml`
+2 -2
View File
@@ -19,14 +19,14 @@ Build the executable jar once:
```bash
./gradlew build
ls build/libs/gittally-*-SNAPSHOT.jar
ls build/libs/gittally.jar
```
Copy the jar to a stable path outside any watched repository, by convention `~/bin/gittally.jar`:
```bash
mkdir -p ~/bin
cp build/libs/gittally-0.1.0-SNAPSHOT.jar ~/bin/gittally.jar
cp build/libs/gittally.jar ~/bin/gittally.jar
```
The systemd unit generated below points at the jar that was used to run `init --systemd`.
+1 -2
View File
@@ -21,8 +21,7 @@ ORIGIN_URL="${ORIGIN_URL:-$(git -C "$DEV_CHECKOUT" remote get-url origin)}"
# 2. Dedicated clone: builds run in worktrees under its .git/gittally/worktrees,
# completely separate from your dev checkout.
mkdir -p "$INSTALL_DIR"
JAR=$(ls "$DEV_CHECKOUT"/build/libs/gittally-*.jar | grep -v -- '-plain' | head -1)
cp "$JAR" "$INSTALL_DIR/gittally.jar"
cp "$DEV_CHECKOUT/build/libs/gittally.jar" "$INSTALL_DIR/gittally.jar"
if [ ! -d "$INSTALL_DIR/repo/.git" ]; then
git clone "$ORIGIN_URL" "$INSTALL_DIR/repo"
fi
+1 -2
View File
@@ -24,8 +24,7 @@ DEV_CHECKOUT=$(git rev-parse --show-toplevel)
# 1. Build the GitTally jar.
(cd "$DEV_CHECKOUT" && ./gradlew --console=plain build)
mkdir -p "$INSTALL_DIR"
JAR=$(ls "$DEV_CHECKOUT"/build/libs/gittally-*.jar | grep -v -- '-plain' | head -1)
cp "$JAR" "$INSTALL_DIR/gittally.jar"
cp "$DEV_CHECKOUT/build/libs/gittally.jar" "$INSTALL_DIR/gittally.jar"
# 2. Scratch bare origin plus a "work" clone for triggering builds by pushing.
if [ ! -d "$INSTALL_DIR/origin.git" ]; then