diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-31 20:57:06 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-01 19:18:57 +0200 |
| commit | eedf207bf4c9b723db685e6b7a9191bef9745486 (patch) | |
| tree | 3ce364af1efbadca9f33bca5d3abbace5af44b49 /simulator/buildSrc/src/main | |
| parent | dff259fa1a721df3bc2601014d5749f6e620854c (diff) | |
Add explicit API visibility
This change adds explicit visibility modifiers to the public interfaces
and enables Kotlin 1.4's explicit API mode.
Diffstat (limited to 'simulator/buildSrc/src/main')
| -rw-r--r-- | simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts b/simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts index c0c37a09..452db573 100644 --- a/simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts +++ b/simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts @@ -40,6 +40,10 @@ java { sourceCompatibility = JavaVersion.VERSION_1_8 } +kotlin { + explicitApi() +} + tasks.withType<KotlinCompile>().configureEach { kotlinOptions.jvmTarget = "1.8" kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" @@ -56,7 +60,3 @@ tasks.jacocoTestReport { html.isEnabled = true } } - -dependencies { - implementation(kotlin("stdlib")) -} |
