Skip to content

Commit

Permalink
chore: Use jdk 17 for artifact publish (#69)
Browse files Browse the repository at this point in the history
* chore: Use jdk 17 for artifact publish

* nits

* bump version to next snapshot

* add signing plugin

* spotless
  • Loading branch information
felipecsl committed Jun 18, 2024
1 parent 8a1b2c0 commit eb80dd3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion eppo/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
}
}

0 comments on commit eb80dd3

Please sign in to comment.