File tree Expand file tree Collapse file tree 6 files changed +42
-55
lines changed
src/main/java/com/meilisearch/sdk Expand file tree Collapse file tree 6 files changed +42
-55
lines changed Original file line number Diff line number Diff line change @@ -459,14 +459,14 @@ getting_started_add_documents: |-
459459 // <dependency>
460460 // <groupId>com.meilisearch.sdk</groupId>
461461 // <artifactId>meilisearch-java</artifactId>
462- // <version>0.14.3 </version>
462+ // <version>0.14.5 </version>
463463 // <type>pom</type>
464464 // </dependency>
465465
466466 // For Gradle
467467 // Add the following line to the `dependencies` section of your `build.gradle`:
468468 //
469- // implementation 'com.meilisearch.sdk:meilisearch-java:0.14.3 '
469+ // implementation 'com.meilisearch.sdk:meilisearch-java:0.14.5 '
470470
471471 // In your .java file:
472472 import com.meilisearch.sdk;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Publish to Maven Central
2+
3+ on :
4+ push :
5+ tags : ["v*"] # Trigger on version tag pushes (adjust as needed)
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Check out code
12+ uses : actions/checkout@v3
13+
14+ - name : Set up JDK 17
15+ uses : actions/setup-java@v4
16+ with :
17+ distribution : ' zulu'
18+ java-version : ' 17'
19+ # Import GPG signing key for Maven Central (from secrets)
20+ gpg-private-key : ${{ secrets.SIGNING_KEY_ID }}
21+ gpg-passphrase : ${{ secrets.SIGNING_PASSWORD }}
22+
23+ - name : Publish to Sonatype Central
24+ env :
25+ # Pass Sonatype portal token credentials to Gradle
26+ ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
27+ ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
28+ run : ./gradlew clean publishToSonatype closeAndReleaseSonatypeStagingRepository
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Add the following code to the `<dependencies>` section of your project:
5858<dependency >
5959 <groupId >com.meilisearch.sdk</groupId >
6060 <artifactId >meilisearch-java</artifactId >
61- <version >0.14.4 </version >
61+ <version >0.14.5 </version >
6262 <type >pom</type >
6363</dependency >
6464```
@@ -68,7 +68,7 @@ Add the following code to the `<dependencies>` section of your project:
6868Add the following line to the ` dependencies ` section of your ` build.gradle ` :
6969
7070``` groovy
71- implementation 'com.meilisearch.sdk:meilisearch-java:0.14.4 '
71+ implementation 'com.meilisearch.sdk:meilisearch-java:0.14.5 '
7272```
7373
7474:warning : ` meilisearch-java ` also requires ` okhttp ` as a peer dependency.
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ plugins {
1212 id ' maven-publish'
1313 id ' signing'
1414 id ' jacoco'
15- id ' io.github.gradle-nexus.publish-plugin' version " 2.0.0"
15+ id " io.github.gradle-nexus.publish-plugin" version " 2.0.0"
1616 id " com.diffplug.spotless" version " 6.13.0"
1717}
1818
1919group = ' com.meilisearch.sdk'
2020archivesBaseName = ' meilisearch-java'
21- version = ' 0.14.4 '
21+ version = ' 0.14.5 '
2222
2323java {
2424 sourceCompatibility = JavaVersion . VERSION_1_8
@@ -171,15 +171,15 @@ publishing {
171171}
172172
173173nexusPublishing {
174- packageGroup = " com.meilisearch"
175-
176174 repositories {
177175 sonatype {
178- nexusUrl. set(uri(" https://oss.sonatype.org/service/local/" ))
179-
180- username = System . getenv(' OSSRH_USERNAME' )
181- password = System . getenv(' OSSRH_PASSWORD' )
182- stagingProfileId = System . getenv(' SONATYPE_STAGING_PROFILE_ID' )
176+ // Point to new Central Portal staging API (replaces oss.sonatype.org)
177+ nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
178+ snapshotRepositoryUrl. set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
179+ // Credentials: use Central Portal token (username/password)
180+ username. set(System . getenv(" MAVEN_CENTRAL_USERNAME" )) // portal token user
181+ password. set(System . getenv(" MAVEN_CENTRAL_PASSWORD" )) // portal token password
182+ // packageGroup or stagingProfileId not needed if using nexus-publish-plugin
183183 }
184184 }
185185}
Original file line number Diff line number Diff line change 11package com .meilisearch .sdk ;
22
33public class Version {
4- static final String VERSION = "0.14.4 " ;
4+ static final String VERSION = "0.14.5 " ;
55
66 public static String getQualifiedVersion () {
77 return "Meilisearch Java (v" + VERSION + ")" ;
You can’t perform that action at this time.
0 commit comments