Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Cleanup freeCompilerArgs (#52)
Browse files Browse the repository at this point in the history
* Replace -Xopt-in with -opt-in

* Remove args
  • Loading branch information
Goooler authored Mar 11, 2022
1 parent e41f9af commit b5880f1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions buildSrc/src/main/kotlin/ProjectExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,9 @@ inline fun <reified T : BaseExtension> Project.setupBase(
(this as ExtensionAware).extensions.configure<KotlinJvmOptions> {
jvmTarget = javaVersion.toString()
freeCompilerArgs = listOf(
// https://kotlinlang.org/docs/compiler-reference.html#progressive
"-progressive",
"-Xopt-in=kotlin.RequiresOptIn",
// Generate native Java 8 default interface methods.
"-Xjvm-default=all",
// Generate smaller bytecode by not generating runtime not-null assertions.
"-Xno-call-assertions",
"-Xno-param-assertions",
"-Xno-receiver-assertions"
"-opt-in=kotlin.RequiresOptIn",
"-Xjvm-default=all"
)
}
packagingOptions.resources.excludes += setOf(
Expand Down

0 comments on commit b5880f1

Please sign in to comment.