Skip to content

Commit 4c059bf

Browse files
authored
Merge pull request #995 from meilisearch/meili-bot/bump-version
Update version for the next release (v0.22.1)
2 parents 740d3f6 + 2a9406c commit 4c059bf

6 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎.code-samples.meilisearch.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,14 @@ getting_started_add_documents: |-
391391
// <dependency>
392392
// <groupId>com.meilisearch.sdk</groupId>
393393
// <artifactId>meilisearch-java</artifactId>
394-
// <version>0.21.0</version>
394+
// <version>0.22.1</version>
395395
// <type>pom</type>
396396
// </dependency>
397397
398398
// For Gradle
399399
// Add the following line to the `dependencies` section of your `build.gradle`:
400400
//
401-
// implementation 'com.meilisearch.sdk:meilisearch-java:0.21.0'
401+
// implementation 'com.meilisearch.sdk:meilisearch-java:0.22.1'
402402
403403
// In your .java file:
404404
import com.meilisearch.sdk;

‎.github/scripts/check-release.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ check1='build.gradle'
66
check2='README.md'
77
check3='README.md'
88
check4='.code-samples.meilisearch.yaml'
9+
check5='src/main/java/com/meilisearch/sdk/Version.java'
910

1011
tag1=$(grep '^version = ' $check1 | cut -d "'" -f 2 | tr -d ' ')
1112
tag2=$(grep '<version>' $check2 | cut -d '>' -f2 | cut -d '<' -f1)
1213
tag3=$(grep 'implementation' $check3 | cut -d : -f3 | tr -d "'")
1314
tag4=$(grep 'implementation' $check4 | cut -d : -f3 | tr -d "'")
14-
if [ "$current_tag" != "$tag1" ] || [ "$current_tag" != "$tag2" ] || [ "$current_tag" != "$tag3" ] || [ "$current_tag" != "$tag4" ]; then
15+
tag5=$(grep 'VERSION =' $check5 | cut -d '"' -f 2)
16+
if [ "$current_tag" != "$tag1" ] || [ "$current_tag" != "$tag2" ] || [ "$current_tag" != "$tag3" ] || [ "$current_tag" != "$tag4" ] || [ "$current_tag" != "$tag5" ]; then
1517
echo "Error: the current tag does not match the version in package check(s)."
1618
echo "$check1: found $tag1 - expected $current_tag"
1719
echo "$check2: found $tag2 - expected $current_tag"
1820
echo "$check3: found $tag3 - expected $current_tag"
1921
echo "$check4: found $tag4 - expected $current_tag"
22+
echo "$check5: found $tag5 - expected $current_tag"
2023
exit 1
2124
fi
2225

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
- name: Check out code
1212
uses: actions/checkout@v6
1313

14+
- name: Check release validity
15+
run: bash .github/scripts/check-release.sh
16+
1417
- name: Set up JDK 17
1518
uses: actions/setup-java@v5
1619
with:

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Add the following code to the `<dependencies>` section of your project:
5757
<dependency>
5858
<groupId>com.meilisearch.sdk</groupId>
5959
<artifactId>meilisearch-java</artifactId>
60-
<version>0.21.0</version>
60+
<version>0.22.1</version>
6161
<type>pom</type>
6262
</dependency>
6363
```
@@ -67,7 +67,7 @@ Add the following code to the `<dependencies>` section of your project:
6767
Add the following line to the `dependencies` section of your `build.gradle`:
6868

6969
```groovy
70-
implementation 'com.meilisearch.sdk:meilisearch-java:0.21.0'
70+
implementation 'com.meilisearch.sdk:meilisearch-java:0.22.1'
7171
```
7272

7373
:warning: `meilisearch-java` also requires `okhttp` as a peer dependency.

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616
}
1717

1818
group = 'com.meilisearch.sdk'
19-
version = '0.21.0'
19+
version = '0.22.1'
2020

2121
base {
2222
archivesName.set('meilisearch-java')

‎src/main/java/com/meilisearch/sdk/Version.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.meilisearch.sdk;
22

33
public class Version {
4-
static final String VERSION = "0.21.0";
4+
static final String VERSION = "0.22.1";
55

66
public static String getQualifiedVersion() {
77
return "Meilisearch Java (v" + VERSION + ")";

0 commit comments

Comments
 (0)