mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 16:09:38 +02:00
fix(build): switch kotlin-library plugin to compilerOptions
DSL
This commit is contained in:
parent
57670ea047
commit
9348b7c444
|
@ -16,10 +16,10 @@ class KotlinLibraryPlugin : Plugin<Project> {
|
||||||
|
|
||||||
override fun apply(project: Project) {
|
override fun apply(project: Project) {
|
||||||
project.pluginManager.apply(KotlinCommonPlugin::class)
|
project.pluginManager.apply(KotlinCommonPlugin::class)
|
||||||
project.tasks.withType<KotlinCompile>().configureEach {
|
project.tasks.withType<KotlinCompile>().configureEach task@{
|
||||||
kotlinOptions {
|
compilerOptions {
|
||||||
if (!name.contains("test", ignoreCase = true)) {
|
if (!this@task.name.contains("test", ignoreCase = true)) {
|
||||||
freeCompilerArgs = freeCompilerArgs + listOf("-Xexplicit-api=strict")
|
freeCompilerArgs.add("-Xexplicit-api=strict")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue