Skip to content

Commit

Permalink
move compiler options to kotlin dsl block
Browse files Browse the repository at this point in the history
  • Loading branch information
solrudev committed Jun 6, 2024
1 parent 01aa83c commit e396449
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import java.util.Properties

val packageName = "ru.solrudev.okkeipatcher"
Expand All @@ -32,6 +31,10 @@ plugins {

kotlin {
jvmToolchain(17)

compilerOptions {
freeCompilerArgs.add("-Xjvm-default=all")
}
}

base {
Expand Down Expand Up @@ -110,12 +113,6 @@ android {
}
}

tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions {
freeCompilerArgs.add("-Xjvm-default=all")
}
}

tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
Expand Down

0 comments on commit e396449

Please sign in to comment.