meilisearch / meilisearch-java

Java client for Meilisearch

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deployment is failing due to deprecation of nexus-publish-plugin

alallema opened this issue · comments

Description
The OSSRH workflow failed during the v0.11.2 deployment.
This is caused by the deprecation of the nexus-publish-plugin which is used by gradle-nexus-staging-plugin that we currently use in the build.gradle file.
The nexus-publish-plugin is now replaced by this publish plugin.

Screenshots or Logs

> Task :closeRepository
DEPRECATION WARNING. The staging repository ID is not provided. The fallback mode may impact release reliability and is deprecated. Please consult the project FAQ how it can be fixed.
Attempt 61/61 failed. WrongNumberOfRepositories was thrown with message 'Wrong number of received repositories in state 'open'. Expected 1, received 3'. Giving up. Configure longer timeout if necessary.

> Task :closeRepository FAILED

FAILURE: Build failed with an exception.

* What went wrong:
1 actionable task: 1 executed
Execution failed for task ':closeRepository'.
> Wrong number of received repositories in state 'open'. Expected 1, received 3

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org/

BUILD FAILED in 5m 11s
Error: Process completed with exit code 1.

How to fix it

You should be able to follow this guide for the migration and modify the build.gradle file with the new plugin