diff --git a/.github/workflows/publish-dev-version.yml b/.github/workflows/publish-dev-version.yml index bf15b3a..02fb216 100644 --- a/.github/workflows/publish-dev-version.yml +++ b/.github/workflows/publish-dev-version.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Java uses: actions/setup-java@v3 with: - java-version: '19' + java-version: '17' distribution: 'corretto' - name: Cache Gradle dependencies diff --git a/.github/workflows/publish-release-version.yml b/.github/workflows/publish-release-version.yml index 9023c14..993c931 100644 --- a/.github/workflows/publish-release-version.yml +++ b/.github/workflows/publish-release-version.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Java uses: actions/setup-java@v3 with: - java-version: '19' + java-version: '17' distribution: 'corretto' - name: Cache Gradle dependencies diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a4623b5..a6ea7ce 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,6 +15,6 @@ jobs: - uses: actions/setup-java@v3 with: distribution: 'corretto' - java-version: '19' + java-version: '17' cache: 'gradle' - run: ./gradlew test --no-daemon diff --git a/grpc-engine/android/build.gradle.kts b/grpc-engine/android/build.gradle.kts index 11fa3d1..27b1883 100644 --- a/grpc-engine/android/build.gradle.kts +++ b/grpc-engine/android/build.gradle.kts @@ -12,8 +12,8 @@ android { } compileOptions { - targetCompatibility = JavaVersion.VERSION_19 - sourceCompatibility = JavaVersion.VERSION_19 + targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_17 } namespace = "io.timemates.android.grpc" @@ -26,7 +26,7 @@ dependencies { } kotlin { - jvmToolchain(19) + jvmToolchain(17) } deployLibrary { diff --git a/grpc-engine/build.gradle.kts b/grpc-engine/build.gradle.kts index 02e99cf..cae6d30 100644 --- a/grpc-engine/build.gradle.kts +++ b/grpc-engine/build.gradle.kts @@ -23,6 +23,7 @@ dependencies { kotlin { explicitApi() + jvmToolchain(17) } protobuf { diff --git a/sdk/build.gradle.kts b/sdk/build.gradle.kts index 047d8cf..bdad811 100644 --- a/sdk/build.gradle.kts +++ b/sdk/build.gradle.kts @@ -5,6 +5,7 @@ plugins { kotlin { jvm() + jvmToolchain(17) explicitApi() }