Skip to content

Commit d9751c2

Browse files
meili-bors[bot]meili-bot
authored andcommitted
Merge #852
852: Update version for the next release (v0.14.5) r=curquiza a=meili-bot _This PR is auto-generated._ The automated script updates the version of meilisearch-java to a new version: "v0.14.5" Co-authored-by: meili-bot <[email protected]>
2 parents bfcbbf2 + 20838d9 commit d9751c2

File tree

6 files changed

+42
-55
lines changed

6 files changed

+42
-55
lines changed

.code-samples.meilisearch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

.github/workflows/ossrh-publish.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:
6868
Add 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.

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

1919
group = 'com.meilisearch.sdk'
2020
archivesBaseName = 'meilisearch-java'
21-
version = '0.14.4'
21+
version = '0.14.5'
2222

2323
java {
2424
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -171,15 +171,15 @@ publishing {
171171
}
172172

173173
nexusPublishing {
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
}

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.14.4";
4+
static final String VERSION = "0.14.5";
55

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

0 commit comments

Comments
 (0)