diff --git a/kotlin-native/build-tools/build.gradle.kts b/kotlin-native/build-tools/build.gradle.kts index 967985e8fa5..b17cb5d003d 100644 --- a/kotlin-native/build-tools/build.gradle.kts +++ b/kotlin-native/build-tools/build.gradle.kts @@ -43,9 +43,6 @@ dependencies { api(gradleApi()) api(kotlinStdlib()) - commonApi(project(":kotlin-gradle-plugin")) - commonApi(project(":kotlin-gradle-plugin-api")) - commonApi(project(":kotlin-gradle-plugin-model")) implementation(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false } implementation("org.jetbrains.kotlin:kotlin-build-gradle-plugin:${kotlinBuildProperties.buildGradlePluginVersion}") @@ -63,17 +60,12 @@ dependencies { } } - api(project(":native:kotlin-native-utils")) - api(project(":kotlin-native-shared")) - api(project(":kotlinx-metadata-klib")) -} + implementation(commonDependency("org.jetbrains.kotlinx:kotlinx-coroutines-core")) -kotlin { - sourceSets { - main { - kotlin.srcDir("$projectDir/../tools/benchmarks/shared/src/main/kotlin/report") - } - } + implementation(commonDependency("org.jetbrains.kotlin:kotlin-native-utils:$kotlinVersion")) + implementation(commonDependency("org.jetbrains.kotlinx:kotlinx-metadata-klib:$metadataVersion")) + + api(project(":kotlin-native-shared")) } val compileKotlin: KotlinCompile by tasks diff --git a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/KonanTestExecutable.kt b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/KonanTestExecutable.kt index 32c7a518f8c..132b5767de1 100644 --- a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/KonanTestExecutable.kt +++ b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/KonanTestExecutable.kt @@ -2,6 +2,8 @@ package org.jetbrains.kotlin import org.gradle.api.Action import org.gradle.api.Task +import org.gradle.api.tasks.Input +import org.gradle.api.tasks.Internal /** * An interface that any test that works with ExecutorService @@ -11,12 +13,14 @@ interface KonanTestExecutable : Task { /** * Test executable to be run by the service. */ + @get:Input val executable: String /** * Action that configures task or does some workload before the test will be executed. * Could be done as a first step in the test or just as a `doFirst` action in the test task. */ + @get:Input var doBeforeRun: Action? /** @@ -24,10 +28,12 @@ interface KonanTestExecutable : Task { * Depending on the test task implementation this action is done before the build task * or as its `doFirst` action. */ + @get:Input var doBeforeBuild: Action? /** * Build tasks that this [executable] depends on, or is built from. */ + @get:Internal val buildTasks: List } \ No newline at end of file diff --git a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/KotlinNativeTest.kt b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/KotlinNativeTest.kt index 8f56a6d3055..35a70775fca 100644 --- a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/KotlinNativeTest.kt +++ b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/KotlinNativeTest.kt @@ -54,12 +54,13 @@ abstract class KonanTest : DefaultTask(), KonanTestExecutable { /** * Test executable arguments. */ - @Input + @get:Input var arguments = mutableListOf() /** * Test executable. */ + @get:Input abstract override val executable: String /**