Skip to content

Commit

Permalink
update build to avoid deprecated options
Browse files Browse the repository at this point in the history
  • Loading branch information
F43nd1r committed Nov 3, 2024
1 parent 08a0581 commit 8d52a1d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/acra-android-library.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ dependencies {
}

tasks.withType<KotlinCompile> {
kotlinOptions {
compilerOptions {
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/acra-release.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tasks.register("publish") {

tasks.register<Delete>("clean") {
group = "build"
delete = setOf(buildDir)
delete = setOf(layout.buildDirectory)
}

nexusPublishing {
Expand Down
3 changes: 3 additions & 0 deletions examples/acra-basic-java-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ android {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
buildFeatures {
buildConfig = true
}
}

dependencies {
Expand Down
9 changes: 7 additions & 2 deletions examples/acra-basic-kotlin-example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

/*
* Copyright (c) 2021
*
Expand Down Expand Up @@ -31,6 +33,9 @@ android {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
buildFeatures {
buildConfig = true
}
}

dependencies {
Expand All @@ -42,8 +47,8 @@ dependencies {
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}

0 comments on commit 8d52a1d

Please sign in to comment.