Skip to content

Commit

Permalink
build: upgraded Java version to 17 in Java and Kotlin options in buil…
Browse files Browse the repository at this point in the history
…d.gradle files
  • Loading branch information
JuancaG05 committed Nov 4, 2024
1 parent a80439e commit 9c4ad6a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
6 changes: 3 additions & 3 deletions owncloudApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}

sourceSets {
Expand Down
9 changes: 9 additions & 0 deletions owncloudComLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ android {
targetSdkVersion sdkTargetVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}

lint {
abortOnError false
ignoreWarnings true
Expand Down
10 changes: 5 additions & 5 deletions owncloudData/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ android {
}
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}

sourceSets {
Expand Down
10 changes: 5 additions & 5 deletions owncloudDomain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ android {
}
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}

sourceSets {
Expand Down
9 changes: 9 additions & 0 deletions owncloudTestUtil/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ android {
targetSdkVersion sdkTargetVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}

buildTypes {
release {
minifyEnabled false
Expand Down

0 comments on commit 9c4ad6a

Please sign in to comment.