Skip to content

Commit

Permalink
chore: Downgrade to JDK 17 (#8)
Browse files Browse the repository at this point in the history
## **Associated JIRA tasks**

.

## **What the code does.**

Downgrade to JDK 17

## **Does this code change break backwards compatibility?.**

No
  • Loading branch information
sishbi authored Oct 14, 2024
1 parent 7925299 commit 8221511
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/java-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Java SDK Build JDK21

on:
push:
branches:
- main
pull_request:
branches:
- main
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
jobs:
validation:
name: "gradle-wrapper-validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3

build:
needs:
- validation
runs-on: ubuntu-latest
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
steps:
- uses: actions/checkout@v4
- name: Checkout proto repository
run: |
git clone https://github.com/KodyPay/kp-protocols-clientsdk.git proto-repo
mv proto-repo/src .
rm -r proto-repo
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
- name: Setup & Build Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: build -s --scan -Pversion=${{ needs.tagging.outputs.version }}
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repositories {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(17))
vendor.set(JvmVendorSpec.ADOPTIUM)
}
}
Expand Down Expand Up @@ -91,4 +91,4 @@ mavenPublishing {
tasks.withType<PublishToMavenRepository> {
mustRunAfter(rootProject.tasks.findByName("release"))
rootProject.tasks.findByName("postRelease")?.dependsOn(this)
}
}

0 comments on commit 8221511

Please sign in to comment.