From eedf207bf4c9b723db685e6b7a9191bef9745486 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Mon, 31 Aug 2020 20:57:06 +0200 Subject: Add explicit API visibility This change adds explicit visibility modifiers to the public interfaces and enables Kotlin 1.4's explicit API mode. --- .../buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'simulator/buildSrc') 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().configureEach { kotlinOptions.jvmTarget = "1.8" kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" @@ -56,7 +60,3 @@ tasks.jacocoTestReport { html.isEnabled = true } } - -dependencies { - implementation(kotlin("stdlib")) -} -- cgit v1.2.3