Skip to content

Commit d117c12

Browse files
committed
Add BOM example into readme
1 parent 07e1a1b commit d117c12

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ jobs:
126126
id: prepare_next_dev
127127
run: |
128128
sed -i -e 's/${{ needs.version.outputs.CURRENT_VERSION }}/${{ needs.version.outputs.NEXT_VERSION }}/g' gradle.properties
129-
sed -i -E -e 's/json-schema-validator(:|\/)[0-9]+\.[0-9]+\.[0-9]+/json-schema-validator\1${{ needs.version.outputs.RELEASE_VERSION }}/g' README.md
130-
sed -i -E -e 's/json-schema-validator(:|\/)[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)/json-schema-validator\1${{ needs.version.outputs.NEXT_VERSION }}/g' README.md
129+
sed -i -E -e 's/json-schema-validator((-[a-z]+)?:|\/)[0-9]+\.[0-9]+\.[0-9]+/json-schema-validator\1${{ needs.version.outputs.RELEASE_VERSION }}/g' README.md
130+
sed -i -E -e 's/json-schema-validator((-[a-z]+)?:|\/)[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)/json-schema-validator\1${{ needs.version.outputs.NEXT_VERSION }}/g' README.md
131131
- name: Commit next dev version
132132
id: commit_next_dev
133133
uses: EndBug/add-and-commit@v9

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ repositories {
5858
}
5959
6060
implementation 'io.github.optimumcode:json-schema-validator:0.4.0'
61+
62+
// or with BOM
63+
64+
implementation(platform("io.github.optimumcode:json-schema-validator-bom:0.4.0"))
65+
implementation("io.github.optimumcode:json-schema-validator")
6166
```
6267

6368
_Release are published to Sonatype repository. The synchronization with Maven Central takes time._
@@ -91,6 +96,11 @@ repositories {
9196
}
9297

9398
implementation("io.github.optimumcode:json-schema-validator:0.5.0-SNAPSHOT")
99+
100+
// or with BOM
101+
102+
implementation(platform("io.github.optimumcode:json-schema-validator-bom:0.5.0-SNAPSHOT"))
103+
implementation("io.github.optimumcode:json-schema-validator")
94104
```
95105

96106
##### Groovy

0 commit comments

Comments
 (0)