Skip to content

Commit 6fafa58

Browse files
author
breensmbaka
committed
Upgrade to Java 17 and update JVM targets
This commit upgrades the project to Java 17, which includes: - Updating the GitHub Actions workflow to use JDK 17 instead of JDK 11. - Setting the `sourceCompatibility` and `targetCompatibility` to `JavaVersion.VERSION_17` in both `app/build.gradle` and `searchable-dropdown/build.gradle`. - Setting the `jvmTarget` to '17' in the `kotlinOptions` of `app/build.gradle` and `searchable-dropdown/build.gradle`. - Add `maven { url 'https://jitpack.io' }` in `setting.gradle` file to add jitpack support.
1 parent 401c688 commit 6fafa58

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v2.3.4
1515

16-
- name: Set up JDK 11
16+
- name: Set up JDK 17
1717
uses: actions/setup-java@v1
1818
with:
19-
java-version: 11
19+
java-version: 17
2020

2121
- name: Build with Gradle
2222
run: ./gradlew assembleDebug

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ android {
3131
targetCompatibility JavaVersion.VERSION_17
3232
}
3333
kotlinOptions {
34-
jvmTarget = '1.8'
34+
jvmTarget = '17'
3535
}
3636
buildFeatures {
3737
compose true

searchable-dropdown/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ android {
2424
}
2525
}
2626
compileOptions {
27-
sourceCompatibility JavaVersion.VERSION_1_8
28-
targetCompatibility JavaVersion.VERSION_1_8
27+
sourceCompatibility JavaVersion.VERSION_17
28+
targetCompatibility JavaVersion.VERSION_17
2929
}
3030
kotlinOptions {
31-
jvmTarget = '1.8'
31+
jvmTarget = '17'
3232
}
3333
buildFeatures {
3434
compose true

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencyResolutionManagement {
1010
repositories {
1111
google()
1212
mavenCentral()
13+
maven { url 'https://jitpack.io' }
1314
}
1415
}
1516
rootProject.name = "SearchableExposedDropDownMenuJetpackCompose"

0 commit comments

Comments
 (0)