-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
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.
@@ -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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 }} |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
Update the buf-gradle-plugin build to use the
com.vanniktech.maven.publish
plugin instead of theio.github.gradle-nexus.publish-plugin
. Move all of the build configuration intobuild.gradle.kts
and update CI workflows to migrate off deprecated GitHub actions and action inputs.