File tree Expand file tree Collapse file tree
src/main/java/com/meilisearch/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff line change @@ -6,17 +6,20 @@ check1='build.gradle'
66check2=' README.md'
77check3=' README.md'
88check4=' .code-samples.meilisearch.yaml'
9+ check5=' src/main/java/com/meilisearch/sdk/Version.java'
910
1011tag1=$( grep ' ^version = ' $check1 | cut -d " '" -f 2 | tr -d ' ' )
1112tag2=$( grep ' <version>' $check2 | cut -d ' >' -f2 | cut -d ' <' -f1)
1213tag3=$( grep ' implementation' $check3 | cut -d : -f3 | tr -d " '" )
1314tag4=$( 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
2124fi
2225
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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:
6767Add 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.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ plugins {
1616}
1717
1818group = ' com.meilisearch.sdk'
19- version = ' 0.21.0 '
19+ version = ' 0.22.1 '
2020
2121base {
2222 archivesName. set(' meilisearch-java' )
Original file line number Diff line number Diff line change 11package com .meilisearch .sdk ;
22
33public 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 + ")" ;
You can’t perform that action at this time.
0 commit comments