From eb80dd3fec9746fbcd2b390040f60d100b2c8cd7 Mon Sep 17 00:00:00 2001 From: Felipe Lima Date: Tue, 18 Jun 2024 14:51:22 -0700 Subject: [PATCH] chore: Use jdk 17 for artifact publish (#69) * chore: Use jdk 17 for artifact publish * nits * bump version to next snapshot * add signing plugin * spotless --- .github/workflows/publish-sdk.yaml | 8 +++++--- eppo/build.gradle | 10 +++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-sdk.yaml b/.github/workflows/publish-sdk.yaml index 17b4eca..a851334 100644 --- a/.github/workflows/publish-sdk.yaml +++ b/.github/workflows/publish-sdk.yaml @@ -19,11 +19,13 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 - uses: actions/setup-java@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: - java-version: '11' + java-version: 17 distribution: 'adopt' + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} - name: Restore gradle.properties shell: bash diff --git a/eppo/build.gradle b/eppo/build.gradle index 0bb3a28..1953496 100644 --- a/eppo/build.gradle +++ b/eppo/build.gradle @@ -1,11 +1,12 @@ plugins { id 'com.android.library' id 'maven-publish' + id 'signing' id "com.diffplug.spotless" version "7.0.0.BETA1" } group = "cloud.eppo" -version = "3.1.0" +version = "3.2.0-SNAPSHOT" android { buildFeatures.buildConfig true @@ -185,3 +186,10 @@ tasks.withType(PublishToMavenRepository) { project.ext.has('shouldPublish') && project.ext.shouldPublish } } + +signing { + sign publishing.publications.release + if (System.env['CI']) { + useInMemoryPgpKeys(System.env.GPG_PRIVATE_KEY, System.env.GPG_PASSPHRASE) + } +}