Skip to content

Commit d60441d

Browse files
chore: release 4.21.2
Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent d52d761 commit d60441d

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release:
10-
name: Publish to Sonatype
10+
name: Publish to Maven Central
1111
runs-on: ubuntu-22.04
1212
if: "startsWith(github.event.head_commit.message, 'chore: release')"
1313
steps:
@@ -26,8 +26,8 @@ jobs:
2626
- name: Upload Artifacts
2727
run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache
2828
env:
29-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
30-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
29+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
30+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
3131
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
3232
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_PRIVATE_KEY_ID }}
3333
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PRIVATE_KEY_PASSWORD }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [4.21.2](https://github.com/algolia/algoliasearch-client-java/compare/4.21.1...4.21.2)
2+
3+
- [7238519bc9](https://github.com/algolia/api-clients-automation/commit/7238519bc9) chore(clients): correctly upgrade to maven central publishing ([#5085](https://github.com/algolia/api-clients-automation/pull/5085)) by [@millotp](https://github.com/millotp/)
4+
15
## [4.21.1](https://github.com/algolia/algoliasearch-client-java/compare/4.21.0...4.21.1)
26

37
- [fab1a9413c](https://github.com/algolia/api-clients-automation/commit/fab1a9413c) fix(clients): upgrade to maven central publishing ([#5055](https://github.com/algolia/api-clients-automation/pull/5055)) by [@millotp](https://github.com/millotp/)

algoliasearch/src/main/java/com/algolia/BuildConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ private BuildConfig() {
66
// Empty.
77
}
88

9-
public static final String VERSION = "4.21.1";
9+
public static final String VERSION = "4.21.2";
1010
}

api/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ plugins {
99
}
1010

1111
repositories {
12-
maven {
13-
name = 'ossrh-staging-api'
14-
url = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
15-
}
12+
maven { url = "https://oss.sonatype.org/content/repositories/" }
1613
mavenCentral()
1714
}
1815

gradle.properties

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
GROUP=com.algolia
2-
VERSION_NAME=4.21.1
3-
4-
SONATYPE_HOST=DEFAULT
5-
RELEASE_SIGNING_ENABLED=true
6-
SONATYPE_AUTOMATIC_RELEASE=true
2+
VERSION_NAME=4.21.2
73

84
# POM
95
POM_DESCRIPTION=Java client for Algolia Search API
@@ -19,3 +15,8 @@ POM_DEVELOPER_NAME=The Algolia Team
1915
POM_DEVELOPER_EMAIL=[email protected]
2016
POM_ISSUE_SYSTEM=github
2117
POM_ISSUE_URL=https://github.com/algolia/algoliasearch-client-java/issues
18+
19+
# Publishing
20+
mavenCentralPublishing=true
21+
mavenCentralAutomaticPublishing=true
22+
signAllPublications=true

0 commit comments

Comments
 (0)