Skip to content

Commit 2e60bae

Browse files
committed
Initial release 1.0.0
0 parents  commit 2e60bae

File tree

156 files changed

+9904
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+9904
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Publish to Maven Central and tag
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write # Grants permission to push tags
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
env:
13+
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
14+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
15+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
16+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVENCENTRAL_USERNAME }}
17+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVENCENTRAL_PASSWORD }}
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Set up JDK
26+
uses: actions/setup-java@v4
27+
with:
28+
java-version: 17
29+
distribution: 'temurin'
30+
31+
- name: Set up Gradle
32+
uses: gradle/actions/setup-gradle@v3
33+
with:
34+
cache-read-only: false
35+
36+
- name: Grant execute permission for gradlew
37+
run: chmod +x gradlew
38+
39+
- name: Extract version from build.gradle
40+
id: get_version
41+
run: |
42+
VERSION=$(./gradlew -q printVersion)
43+
echo "VERSION=$VERSION" >> $GITHUB_ENV
44+
45+
- name: Check if tag already exists
46+
run: |
47+
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
48+
echo "Tag v$VERSION already exists!"
49+
exit 1
50+
fi
51+
52+
- name: Fail if snapshot version
53+
run: |
54+
if [[ "$VERSION" == *"-SNAPSHOT" ]]; then
55+
echo "Snapshot versions are not published to Maven Central"
56+
exit 1
57+
fi
58+
59+
- name: Run tests
60+
run: ./gradlew test
61+
62+
# The goal publishToMavenCentral just publishes to a staging area.
63+
# The published artifacts must be released manually in the Maven Central Portal.
64+
# We could use publishAndReleaseToMavenCentral for full automation.
65+
- name: Build and publish to Maven Central
66+
run: ./gradlew clean publishToMavenCentral
67+
68+
- name: Tag the commit with version
69+
if: success()
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
run: |
73+
git config user.name "github-actions[bot]"
74+
git config user.email "github-actions[bot]@users.noreply.github.com"
75+
git tag "v$VERSION"
76+
git push origin "v$VERSION"
77+
78+
- name: Create GitHub Release
79+
if: success()
80+
uses: softprops/action-gh-release@v2
81+
with:
82+
tag_name: v${{ env.VERSION }}
83+
name: Release ${{ env.VERSION }}
84+
generate_release_notes: true
85+
body: |
86+
## Maven Central
87+
88+
This release has been published to Maven Central staging area.
89+
**Manual action required:** Release the artifacts in the [Maven Central Portal](https://central.sonatype.com/).
90+
91+
## Dependency
92+
93+
```gradle
94+
dependencies {
95+
implementation 'de.codebarista:shopware-app-server:${{ env.VERSION }}'
96+
}
97+
```
98+
99+
```xml
100+
<dependency>
101+
<groupId>de.codebarista</groupId>
102+
<artifactId>shopware-app-server</artifactId>
103+
<version>${{ env.VERSION }}</version>
104+
</dependency>
105+
```

.github/workflows/test.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
actions: read
15+
checks: write
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '17'
24+
distribution: 'temurin'
25+
26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@v4
28+
29+
- name: Run tests
30+
run: ./gradlew test
31+
32+
- name: Generate test report
33+
run: ./gradlew jacocoTestReport
34+
if: always()
35+
36+
- name: Publish test results
37+
uses: dorny/test-reporter@v1
38+
if: always()
39+
with:
40+
name: Test Results
41+
path: build/test-results/test/*.xml
42+
reporter: java-junit

.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
HELP.md
2+
CLAUDE.md
3+
.gradle
4+
build/
5+
!gradle/wrapper/gradle-wrapper.jar
6+
!**/src/main/**/build/
7+
!**/src/test/**/build/
8+
*.ignore
9+
10+
### STS ###
11+
.apt_generated
12+
.classpath
13+
.factorypath
14+
.project
15+
.settings
16+
.springBeans
17+
.sts4-cache
18+
bin/
19+
!**/src/main/**/bin/
20+
!**/src/test/**/bin/
21+
22+
### IntelliJ IDEA ###
23+
.idea
24+
*.iws
25+
*.iml
26+
*.ipr
27+
out/
28+
!**/src/main/**/out/
29+
!**/src/test/**/out/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/
40+
node_modules
41+
dist
42+
43+
### SQLITE DBs ###
44+
*.db
45+
*.db-shm
46+
*.db-wal
47+
48+
### Certificates and keystores
49+
50+
*.crt
51+
*.key
52+
*.p12
53+
54+
### Log files ###
55+
*.log*

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [Unreleased]
6+
7+
## [1.0.0] - 2025-11-22
8+
9+
### Added
10+
11+
- App registration and lifecycle management with multi-app support
12+
- Request/response signature verification using HMAC-SHA256
13+
- OAuth token management with automatic expiration handling
14+
- WebClient-based Admin API client with search support
15+
- SQLite persistence with zero-config in-memory default
16+
- Liquibase database migrations
17+
- Spring Boot auto-configuration
18+
19+
[Unreleased]: https://github.com/codebarista-de/shopware-app-server/compare/v1.0.0...HEAD
20+
[1.0.0]: https://github.com/codebarista-de/shopware-app-server/releases/tag/v1.0.0

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Codebarista
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)