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

[Publishing] add ./gradlew publishToOssStagingIfNeeded #2385

Merged

Conversation

martinbonnin
Copy link
Contributor

@martinbonnin martinbonnin commented Jun 22, 2020

Add ./gradlew publishToOssStagingIfNeeded like there is ./gradlew publishIfNeeded. The reason this is a separate task is that Sonatype does not support the --parallel option (it might be specifying a profile Id but I'm not sure how to do this).

Also add publishToOssStagingIfNeeded to the ci script so that Sonatype publishing is done on Github Actions starting with version 2.2.2.

This PR also adds closeAndReleaseRepository based on vanniktech/gradle-maven-publish-plugin#63. It makes it possible to release on Maven Central without having to log in at https://oss.sonatype.org/ and would therefore potentially make the release 100% automated.

I haven't added it to the CI yet, I'll do it if it works well on 2.2.2

@martinbonnin martinbonnin merged commit 84eb0ba into apollographql:master Jun 23, 2020
@martinbonnin martinbonnin deleted the automate-maven-central-publish branch June 23, 2020 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants