You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4afaa84
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/workflows/release-on-tag.yml
+48-12Lines changed: 48 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@ on:
4
4
push:
5
5
tags:
6
6
- 'release/[0-9]*.[0-9]*.[0-9]*'
7
+
paths-ignore:
8
+
- 'docs/**'
9
+
- '**/*.md'
7
10
8
11
permissions:
9
12
contents: write
@@ -17,6 +20,7 @@ concurrency:
17
20
jobs:
18
21
release:
19
22
runs-on: ubuntu-latest
23
+
timeout-minutes: 30
20
24
steps:
21
25
- name: Checkout
22
26
uses: actions/checkout@v4
@@ -27,13 +31,22 @@ jobs:
27
31
uses: actions/setup-java@v4
28
32
with:
29
33
distribution: temurin
30
-
java-version: '21'
34
+
# JDK 25 activates the jtd-codegen profile ([24,)) so the
35
+
# json-java21-jtd-codegen and jtd2jar modules join the reactor
36
+
# and are published too (issue #165).
37
+
java-version: '25'
31
38
cache: maven
32
39
server-id: central
33
-
server-username: ${{ secrets.CENTRAL_USERNAME }}
34
-
server-password: ${{ secrets.CENTRAL_PASSWORD }}
40
+
# setup-java expects ENVIRONMENT VARIABLE NAMES here, not values;
41
+
# the values are provided via the env block below (issue #156).
42
+
server-username: CENTRAL_USERNAME
43
+
server-password: CENTRAL_PASSWORD
35
44
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
36
-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
45
+
gpg-passphrase: GPG_PASSPHRASE
46
+
env:
47
+
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
48
+
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
49
+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
37
50
38
51
- name: Extract version from tag
39
52
id: version
@@ -45,29 +58,51 @@ jobs:
45
58
tag_name: ${{ github.ref_name }}
46
59
generate_release_notes: true
47
60
body: |
61
+
## Maven Central Artifacts
62
+
63
+
All reactor modules are published under `io.github.simbo1905.json` at version `${{ steps.version.outputs.version }}`: [`java.util.json`](https://central.sonatype.com/artifact/io.github.simbo1905.json/java.util.json), [`java.util.json.jsonpath`](https://central.sonatype.com/artifact/io.github.simbo1905.json/java.util.json.jsonpath), [`java.util.json.jtd`](https://central.sonatype.com/artifact/io.github.simbo1905.json/java.util.json.jtd), [`java.util.json.jtd.codegen`](https://central.sonatype.com/artifact/io.github.simbo1905.json/java.util.json.jtd.codegen), [`jtd2jar`](https://central.sonatype.com/artifact/io.github.simbo1905.json/jtd2jar), [`json-compatibility-suite`](https://central.sonatype.com/artifact/io.github.simbo1905.json/json-compatibility-suite), [`json-java21-api-tracker`](https://central.sonatype.com/artifact/io.github.simbo1905.json/json-java21-api-tracker).
64
+
48
65
## Docker Image
49
66
50
67
Pre-built distroless container image available on GitHub Container Registry:
@@ -138,7 +158,7 @@ throw new IllegalArgumentException("invalid schema"); // Too vague
138
158
thrownewIllegalArgumentException("bad value"); // No specifics
139
159
```
140
160
141
-
Use `Json.toDisplayString(value, depth)` to render JSON fragments in error messages, and include relevant context like schema paths, actual vs expected values, and specific constraint violations.
161
+
Use `Json.toDisplayString(value, indent)` to render JSON fragments in error messages, and include relevant context like schema paths, actual vs expected values, and specific constraint violations.
142
162
143
163
## JSON Compatibility Suite
144
164
@@ -151,15 +171,16 @@ See `README.md` for user-facing commands. When running locally as an agent, use
151
171
-`json-java21-api-tracker`: API evolution tracking utilities.
152
172
-`json-compatibility-suite`: JSON Test Suite compatibility validation.
153
173
-`json-java21-jtd`: JSON Type Definition (JTD) validator based on RFC 8927.
154
-
-`json-java21-jsonpath`: JsonPath query engine over `jdk.sandbox.java.util.json` values.
174
+
-`json-java21-jsonpath`: JsonPath query engine over `jdk.incubator.java.util.json` values.
175
+
-`jtd-esm-codegen`: Experimental JTD (RFC 8927) to ES2020 ESM validator code generator for JS consumers; 316/316 official validation.json conformance. See its README and `JTD_CODEGEN_SPEC.md` before working on it.
155
176
156
177
Only when you are asked to work on a specific module, start by reading that module's `README.md`, then its `AGENTS.md`.
157
178
158
179
These modules are treated as separate subsystems; do not read their docs unless you are actively working on them. They are not interlinked and each depends only on the core `json-java21` API.
159
180
160
181
### Core Components
161
182
162
-
#### Public API (`jdk.sandbox.java.util.json`)
183
+
#### Public API (`jdk.incubator.java.util.json`)
163
184
-`Json`: Static utilities for parsing, formatting, and conversion.
164
185
-`JsonValue`: Sealed root interface for all JSON types.
165
186
-`JsonObject`: JSON objects (key-value pairs).
@@ -169,14 +190,14 @@ These modules are treated as separate subsystems; do not read their docs unless
169
190
-`JsonBoolean`: JSON booleans.
170
191
-`JsonNull`: JSON null.
171
192
172
-
IMPORTANT: This API **MUST NOT** deviate from the upstream jdk.sandbox repo which is will track.
193
+
IMPORTANT: This API **MUST NOT** deviate from the upstream jdk.incubator repo which is will track.
-`Json*Impl`: Immutable implementations of `Json*` types.
177
198
-`Utils`: Internal utilities and factory methods.
178
199
179
-
IMPORTANT: Bugs in upstream-derived core logic MUST be fixed upstream. Do not patch `jdk.sandbox.*` sources in this repo unless the user explicitly agrees (for example, to carry a temporary local backport while the upstream fix is in progress).
200
+
IMPORTANT: Bugs in upstream-derived core logic MUST be fixed upstream. Do not patch `jdk.incubator.*` sources in this repo unless the user explicitly agrees (for example, to carry a temporary local backport while the upstream fix is in progress).
180
201
181
202
Only bugs in local, non-upstream code (for example, backporting shims/polyfills or other modules in this repo) should be fixed here using normal TDD.
0 commit comments