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

Migrate to use com.vanniktech.maven.publish #201

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

pkwarren
Copy link
Member

Update the buf-gradle-plugin build to use the
com.vanniktech.maven.publish plugin instead of the io.github.gradle-nexus.publish-plugin. Move all of the build configuration into build.gradle.kts and update CI workflows to migrate off deprecated GitHub actions and action inputs.

Update the buf-gradle-plugin build to use the
`com.vanniktech.maven.publish` plugin instead of the
`io.github.gradle-nexus.publish-plugin`. Move all of the build
configuration into `build.gradle.kts` and update CI workflows to migrate
off deprecated GitHub actions and action inputs.
@pkwarren pkwarren requested a review from rubensf June 28, 2024 21:54
@@ -21,17 +21,17 @@ jobs:
with:
fetch-depth: 0
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
uses: gradle/actions/wrapper-validation@v3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- name: Build
uses: gradle/gradle-build-action@v3
with:
arguments: build --info
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -40,14 +40,14 @@ jobs:
comment_mode: off
check_name: "Test Results (Ubuntu)"
- name: Publish unit test results (Windows)
uses: EnricoMi/publish-unit-test-result-action/composite@v2
uses: EnricoMi/publish-unit-test-result-action/windows@v2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./gradlew
publishToMavenCentral
publishPlugins
--no-configuration-cache
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_ARMORED }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSPHRASE }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -61,7 +69,42 @@ kotlin {
}
}

mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rubensf - This is what we would change if we wanted to publish to central instead of s01.

@pkwarren pkwarren merged commit 286c57b into main Jun 28, 2024
9 checks passed
@pkwarren pkwarren deleted the pkw/update-maven-publishing branch June 28, 2024 22:08
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