Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradle-publish-plugin not working anymore so can't make a release #1046

Closed
harshavardhana opened this issue Sep 3, 2020 · 0 comments
Closed
Assignees
Labels

Comments

@harshavardhana
Copy link
Member

> 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 21/21 failed. RepositoryInTransitionException was thrown with message 'Repository 'iominio-1094' (in 'open' state) is in transition. Check again later.'. Giving up. Configure longer timeout if necessary.

> Task :closeRepository FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':closeRepository'.
> Repository 'iominio-1094' (in 'open' state) is in transition. Check again later.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 47s
1 actionable task: 1 executed

Related issues

https://solidsoft.wordpress.com/2019/02/22/reliable-releasing-to-maven-central-from-travis-using-gradle-2019-edition/

We need to move to

plugins {
    ... //other plugins used in your project
    id 'io.codearte.nexus-staging' version '0.20.0'
    id 'de.marcphilipp.nexus-publish' version '0.2.0'
}
 
publishing {
    ... //your current publishing to Maven Central configuration
}
 
//optionally
nexusStaging {
    packageGroup = "your-package-group-if-different-than-groupId"
}
 
//optionally
nexusPublishing {
    //for custom configuration if needed - credentials
    //       are by default taken from nexus-staging
    //       or from properties nexusUsername and nexusPassword
}
@harshavardhana harshavardhana changed the title gradle-publish-plugin not working anymore gradle-publish-plugin not working anymore so can't make a release Sep 3, 2020
balamurugana added a commit to balamurugana/minio-java that referenced this issue Sep 7, 2020
balamurugana added a commit to balamurugana/minio-java that referenced this issue Sep 7, 2020
balamurugana added a commit to balamurugana/minio-java that referenced this issue Sep 7, 2020
balamurugana added a commit to balamurugana/minio-java that referenced this issue Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants