Skip to content

Commit 85ebae1

Browse files
Merge pull request #10 from velocitycareerlabs/VL-8828-jreleaser-per-sdk-2
jreleaser per sdk 2
2 parents 064539a + 14c1a95 commit 85ebae1

8 files changed

+39
-40
lines changed

.github/workflows/kmp-run-publish-android.yml renamed to .github/workflows/publish-velocityexchangeverifiers-android.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: KMP RUN Publish Android
1+
name: Publish velocityexchangeverifiers Android
22

33
on:
44
workflow_dispatch:
@@ -91,10 +91,11 @@ jobs:
9191
9292
- name: 🧹 Clean staging root
9393
shell: bash
94+
working-directory: velocityexchangeverifiers
9495
run: |
9596
set -euo pipefail
96-
rm -rf velocityexchangeverifiers/target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers
97-
mkdir -p velocityexchangeverifiers/target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers
97+
rm -rf target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers
98+
mkdir -p target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers
9899
99100
- name: 📦 Stage Artifacts
100101
run: |
@@ -113,13 +114,15 @@ jobs:
113114
velocityexchangeverifiers/target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers/${{ env.EFFECTIVE_VERSION }}/${{ env.POM_FILE_NAME }}
114115
115116
- name: 📂 List staged artifacts
116-
run: ls -R velocityexchangeverifiers/target/staging-deploy
117+
working-directory: velocityexchangeverifiers
118+
run: ls -R target/staging-deploy
117119

118120
- name: 🔒 Guard staged contents
119121
shell: bash
122+
working-directory: velocityexchangeverifiers
120123
run: |
121124
set -euo pipefail
122-
BASE=velocityexchangeverifiers/target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers
125+
BASE=target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers
123126
echo "Contents of $BASE:"; ls -1 "$BASE" || true
124127
for d in "$BASE"/*; do
125128
[ -d "$d" ] || continue
@@ -132,16 +135,18 @@ jobs:
132135
133136
- name: 🔎 Verify POM version matches EFFECTIVE_VERSION
134137
shell: bash
138+
working-directory: velocityexchangeverifiers
135139
run: |
136140
set -euo pipefail
137-
POM=velocityexchangeverifiers/target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers/${EFFECTIVE_VERSION}/velocityexchangeverifiers-${EFFECTIVE_VERSION}.pom
141+
POM=target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers/${EFFECTIVE_VERSION}/velocityexchangeverifiers-${EFFECTIVE_VERSION}.pom
138142
grep -q "<version>${EFFECTIVE_VERSION}</version>" "$POM" || { echo "POM version mismatch"; exit 1; }
139143
140144
- name: 📜 Show staged file names
141145
shell: bash
146+
working-directory: velocityexchangeverifiers
142147
run: |
143148
set -euo pipefail
144-
dir=velocityexchangeverifiers/target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers/${EFFECTIVE_VERSION}
149+
dir=target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers/${EFFECTIVE_VERSION}
145150
ls -l "$dir"
146151
147152
- name: ⬆️ Upload staged bundle (debug)
@@ -153,9 +158,10 @@ jobs:
153158

154159
- name: Validate staged files
155160
shell: bash
161+
working-directory: velocityexchangeverifiers
156162
run: |
157163
set -euo pipefail
158-
dir=velocityexchangeverifiers/target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers/${EFFECTIVE_VERSION}
164+
dir=target/staging-deploy/io/velocitycareerlabs/velocityexchangeverifiers/${EFFECTIVE_VERSION}
159165
echo "📂 Validating contents of: $dir"
160166
ls -l "$dir" || true
161167
@@ -180,19 +186,19 @@ jobs:
180186
echo "🔎 Debugging hints:"
181187
echo "→ Check Gradle outputs:"
182188
echo " • build/libs:"
183-
ls -l velocityexchangeverifiers/build/libs || true
189+
ls -l build/libs || true
184190
echo " • build/outputs/aar:"
185-
ls -l velocityexchangeverifiers/build/outputs/aar || true
191+
ls -l build/outputs/aar || true
186192
exit 1
187193
fi
188194
189-
- name: 🚀 Run JReleaser full-release
195+
- name: 🚀 Run JReleaser deploy
190196
uses: jreleaser/release-action@v2
191197
with:
192-
version: 1.18.0
198+
version: 1.19.0
193199
arguments: >
194-
full-release
195-
--config-file=jreleaser.template.yml
200+
deploy
201+
--config-file=velocityexchangeverifiers/jreleaser.template.yml
196202
--debug
197203
env:
198204
JRELEASER_PROJECT_JAVA_ARTIFACT_ID: velocityexchangeverifiers

.github/workflows/kmp-run-publish-ios.yml renamed to .github/workflows/publish-velocityexchangeverifiers-ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: KMP RUN Publish iOS
1+
name: Publish velocityexchangeverifiers iOS
22

33
on:
44
workflow_dispatch:

.github/workflows/kmp-reusable-build-all-targets.yml renamed to .github/workflows/reusable-build-all-targets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: KMP Reusable Build All Targets
1+
name: Reusable Build All Targets
22

33
on:
44
workflow_call:
@@ -45,4 +45,4 @@ jobs:
4545
path: |
4646
**/build/outputs/**
4747
**/build/libs/**
48-
**/build/distributions/**
48+
**/build/distributions/**

.github/workflows/kmp-reusable-test-all-targets.yml renamed to .github/workflows/reusable-test-all-targets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: KMP Reusable Test All Targets
1+
name: Reusable Test All Targets
22

33
on:
44
workflow_call:

.github/workflows/kmp-run-test-and-build-all-targets.yml renamed to .github/workflows/run-test-and-build-all-targets.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: KMP RUN Test And Build All Targets
1+
name: RUN Test And Build All Targets
22

33
on:
44
push:
@@ -13,10 +13,10 @@ on:
1313
jobs:
1414
test-on-pr:
1515
name: Run KMP Tests
16-
uses: ./.github/workflows/kmp-reusable-test-all-targets.yml
16+
uses: ./.github/workflows/reusable-test-all-targets.yml
1717
secrets: inherit
1818

1919
build-on-pr:
2020
name: Build All KMP Targets
21-
uses: ./.github/workflows/kmp-reusable-build-all-targets.yml
22-
secrets: inherit
21+
uses: ./.github/workflows/reusable-build-all-targets.yml
22+
secrets: inherit

velocityexchangeverifiers/load-maven-keys.gradle.kts renamed to load-maven-keys.gradle.kts

File renamed without changes.

velocityexchangeverifiers/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extra["publishArtifactId"] = publishArtifactId
3535
extra["publishVersion"] = publishVersion
3636
extra["effectiveVersion"] = effectiveVersion
3737

38+
apply(from = "../load-maven-keys.gradle.kts")
3839
apply(from = "android-publish.gradle.kts")
3940

4041
// TODO: For future optimization of building only the targets that are needed

jreleaser.template.yml renamed to velocityexchangeverifiers/jreleaser.template.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
11
project:
2-
name: WalletSdkKmp
2+
name: velocityexchangeverifiers
33
# version: from JRELEASER_PROJECT_VERSION
4-
description: Velocity Career Labs Android SDK
4+
description: Velocity Exchange Verifiers - Multiplatform SDK for Verifiable Credential JWT Verification
55
authors:
66
- Michael Avoyan
77
inceptionYear: 2025
88
license: Apache-2.0
99
links:
10-
homepage: https://github.com/velocitycareerlabs
10+
homepage: https://github.com/velocitycareerlabs/WalletSdkKmp
1111
languages:
1212
java:
1313
groupId: io.velocitycareerlabs
1414
artifactId: velocityexchangeverifiers
1515
extraProperties:
16-
displayName: Velocity Career Labs Android SDK
16+
displayName: Velocity Exchange Verifiers
1717

1818
signing:
1919
active: ALWAYS
2020
armored: true
2121
mode: MEMORY
2222
# publicKey: from JRELEASER_GPG_PUBLIC_KEY
2323
# secretKey: from JRELEASER_GPG_SECRET_KEY
24-
# passphrase: JRELEASER_GPG_PASSPHRASE
25-
26-
release:
27-
github:
28-
owner: velocitycareerlabs
29-
name: VelocityExchangeVerifiers
30-
# token: from JRELEASER_GITHUB_TOKEN
31-
# tagName: from JRELEASER_TAG_NAME
32-
# releaseName: from JRELEASER_RELEASE_NAME
33-
sign: true
34-
prerelease:
35-
enabled: true
36-
# pattern: from JRELEASER_PRERELEASE_PATTERN
24+
# passphrase: from JRELEASER_GPG_PASSPHRASE
3725

3826
deploy:
3927
maven:
@@ -51,4 +39,8 @@ deploy:
5139
javadocJar: true
5240
verifyPom: false
5341
stagingRepositories:
54-
- velocityexchangeverifiers/target/staging-deploy
42+
- target/staging-deploy
43+
44+
release:
45+
github:
46+
enabled: false

0 commit comments

Comments
 (0)