Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/workflows/ktlint.yaml

This file was deleted.

18 changes: 3 additions & 15 deletions .github/workflows/persistence-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,21 @@ jobs:
name: Build jactor-persistence

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-java@v4

with:
distribution: temurin
java-version: 25

- name: Cache Gradle dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: gradle-${{ runner.os }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-

- run: ./gradlew :persistence:ktlintCheck
- run: ./gradlew :persistence:build --scan -x test
- name: Verify dependencies
run: |
COUNT=$(./gradlew -q :persistence:dependencies | grep -c SNAPSHOT || true)

echo "Found $COUNT SNAPSHOT dependencies"

if [ "$COUNT" -gt 0 ]
then
>&2 echo ::error No SNAPSHOT dependencies allowed
./gradlew -q :persistence:dependencies
exit 1;
fi
- name: Run tests with stack trace information
run: ./gradlew :persistence:test --tests "*" --stacktrace --info
28 changes: 26 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-java@v4
Expand All @@ -19,11 +19,35 @@ jobs:
java-version: 25

- name: Cache Gradle dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: gradle-${{ runner.os }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-

- run: ./gradlew assemble
- name: Verify persistence dependencies
run: |
COUNT=$(./gradlew -q :persistence:dependencies | grep -c SNAPSHOT || true)

echo "Found $COUNT SNAPSHOT dependencies"

if [ "$COUNT" -gt 0 ]
then
>&2 echo ::error No SNAPSHOT dependencies allowed
./gradlew -q :persistence:dependencies
exit 1;
fi
- name: Verify web dependencies
run: |
COUNT=$(./gradlew -q :web:dependencies | grep -c SNAPSHOT || true)

echo "Found $COUNT SNAPSHOT dependencies"

if [ "$COUNT" -gt 0 ]
then
>&2 echo ::error No SNAPSHOT dependencies allowed
./gradlew -q :web:dependencies
exit 1;
fi
1 change: 0 additions & 1 deletion .github/workflows/tag-persistence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- '.github/**'
- 'persistence/**'
- 'shared/**'
- 'buildSrc/**'
- 'gradle/**'

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tag-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- '.github/**'
- 'web/**'
- 'shared/**'
- 'buildSrc/**'
- 'gradle/**'

jobs:
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/web-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,20 @@ jobs:
name: Build and test with gradle

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-java@v4

with:
distribution: temurin
java-version: 25

- name: Cache Gradle dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: gradle-${{ runner.os }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-

- run: ./gradlew :persistence:ktlintCheck
- run: ./gradlew :web:build --scan -x test
- name: Verify dependencies
run: |
COUNT=$(./gradlew -q :web:dependencies | grep -c SNAPSHOT || true)

echo "Found $COUNT SNAPSHOT dependencies"

if [ "$COUNT" -gt 0 ]
then
>&2 echo ::error No SNAPSHOT dependencies allowed
./gradlew -q :web:dependencies
exit 1;
fi
- run: ./gradlew :web:test --tests "*" --stacktrace
14 changes: 6 additions & 8 deletions persistence/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@ The main purpose is to learn about programming microservices using Kotlin, (with
to get a deeper understanding of continuous integration/DevOps using GitHub workflow/actions and gradle.
integration testing with cucumber.

This project is a microservice dealing with persistence to a database using JPA (java persistence api) via
spring-data-jpa and is a microservice to use under `com.github.jactor.percistence` (formerly as part of the archived
project [jactor-rises](https://github.com/jactor-rises/jactor-rises))
This project is a microservice dealing with persistence to a database using jetbrains exposed (formerly as part of the
archived project [jactor-rises](https://github.com/jactor-rises/jactor-rises))

### Set up

* a spring-boot 3 application
* build with [gradle](https://gradle.org).
* is using [h2](http://h2database.com) (in-memory database)
* run it with spring-boot, or as any other java-application
* this application is documented with swagger. After startup, use link:
* <http://localhost:1099/jactor-persistence/swagger-ui/index.html?configUrl=/jactor-persistence/v3/api-docs/swagger-config#/> (
swagger ui)
* run it with spring-boot
* this application is documented with swagger. After startup, use link
[swagger ui](http://localhost:1099/jactor-persistence/swagger-ui/index.html?configUrl=/jactor-persistence/v3/api-docs/swagger-config#/)

### Build

Expand Down Expand Up @@ -68,7 +66,7 @@ java -jar build/lib/jactor-persistence-<version>-SNAPSHOT.jar

* [flyway](https://flywaydb.org)
* [github actions](https://docs.github.com/en/actions/learn-github-actions)
* [gradle](https://gradle.org) (8.x)
* [gradle](https://gradle.org) (9.x)
* [swagger-ui](https://swagger.io/tools/swagger-ui/)
* herunder [springdoc](https://springdoc.org)
* [sdk man](https://sdkman.io)
2 changes: 1 addition & 1 deletion web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ not a front-end programmer and this module is only present for interactive use o

### Some technologies used on jactor-web

* [spring-boot 3.4.x](https://spring.io/projects/spring-boot)
* [spring-boot 3.5.x](https://spring.io/projects/spring-boot)
* [kotlin 2.x](https://kotlinlang.org)
* [junit 5](https://junit.org/junit5/)
* [assertk](https://github.com/willowtreeapps/assertk)
Expand Down