Skip to content

Commit

Permalink
TECH: bump JDK; resolve gradle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikitae57 committed Dec 28, 2023
1 parent 54b19e2 commit 8f42ffb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ android {
viewBinding = true // for the samples
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
kotlin {
jvmToolchain(JavaVersion.VERSION_17.majorVersion.toInt())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ configure<BaseExtension> {
compileSdkVersion(33)

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

defaultConfig {
Expand All @@ -16,9 +16,9 @@ configure<BaseExtension> {
}

packagingOptions {
merges.apply {
add("META-INF/LGPL2.1")
add("META-INF/AL2.0")
resources {
merges.add("META-INF/LGPL2.1")
merges.add("META-INF/AL2.0")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ val kotlinLanguageVersion = "1.7"
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {

jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = JavaVersion.VERSION_17.toString()

// TODO: fix all warnings before
// allWarningsAsErrors = true
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ val detektAll = tasks.register<Detekt>("detektAll") {
exclude("**/resources/**")
exclude("**/build/**")
reports {
xml.enabled = false
html.enabled = false
xml.required.set(false)
html.required.set(false)
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ thirdPartyReport = "0.18.956"
# plugins
kotlinPlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
androidPlugin = "com.android.tools.build:gradle:8.1.4"
versionsPlugin = "com.github.ben-manes:gradle-versions-plugin:0.39.0"
versionsPlugin = "com.github.ben-manes:gradle-versions-plugin:0.50.0"
thirdPartyReportPlugin = { module = "com.kaspersky.gradle:third-party-report", version.ref = "thirdPartyReport" }
airPlugin = { module = "com.kaspersky.gradle:air", version.ref = "thirdPartyReport" }

Expand Down

0 comments on commit 8f42ffb

Please sign in to comment.