Created
July 28, 2021 14:21
-
-
Save orcchg/d5626dc01cb57df1ea6f895aa827d960 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id("convention.libraries") | |
} | |
project.ext.set("isBuildSystemProject", true) // <- this is extra property | |
dependencies { | |
add("implementation", deps.base.androidx.annotation) | |
add("implementation", deps.base.di.inject) | |
add("implementation", deps.base.kotlin.stdlib) | |
add("implementation", deps.base.kotlin.coroutines.core) | |
add("implementation", deps.base.kotlin.coroutines.rx2) | |
add("implementation", deps.base.rx.core) | |
} | |
tasks.withType<KotlinCompile>().configureEach { | |
kotlinOptions { | |
jvmTarget = deps.javaVersion.toString() | |
freeCompilerArgs = freeCompilerArgs + | |
"-Xopt-in=kotlin.RequiresOptIn" + | |
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi,kotlinx.coroutines.FlowPreview" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment