-
-
Save landarskiy/e32cc77142a064f95f79b9f0e4f5ac50 to your computer and use it in GitHub Desktop.
This file contains 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
internal fun Project.configureKotlin( | |
commonExtension: CommonExtension<*, *, *, *>, | |
) { | |
commonExtension.apply { | |
compileOptions { | |
sourceCompatibility = JavaVersion.VERSION_1_8 | |
targetCompatibility = JavaVersion.VERSION_1_8 | |
} | |
kotlinOptions { | |
jvmTarget = JavaVersion.VERSION_1_8.toString() | |
} | |
} | |
} | |
fun CommonExtension<*, *, *, *>.kotlinOptions(block: KotlinJvmOptions.() -> Unit) { | |
(this as ExtensionAware).extensions.configure("kotlinOptions", block) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment