Skip to content

Instantly share code, notes, and snippets.

@orcchg
Created July 28, 2021 14:21
Show Gist options
  • Save orcchg/d5626dc01cb57df1ea6f895aa827d960 to your computer and use it in GitHub Desktop.
Save orcchg/d5626dc01cb57df1ea6f895aa827d960 to your computer and use it in GitHub Desktop.
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