| plugins { |
| id("gradle-plugin-common-configuration") |
| `jvm-test-suite` |
| } |
| |
| dependencies { |
| commonApi(platform(project(":kotlin-gradle-plugins-bom"))) |
| commonApi(project(":kotlin-gradle-plugin-model")) |
| commonApi(project(":kotlin-gradle-plugin")) |
| } |
| |
| gradlePlugin { |
| plugins { |
| create("kotlinComposeCompilerPlugin") { |
| id = "org.jetbrains.kotlin.plugin.compose" |
| displayName = "Compose Compiler Gradle plugin" |
| description = displayName |
| implementationClass = "org.jetbrains.kotlin.compose.compiler.gradle.ComposeCompilerGradleSubplugin" |
| } |
| } |
| } |
| |
| if (!kotlinBuildProperties.isInJpsBuildIdeaSync) { |
| testing { |
| suites { |
| val test by getting(JvmTestSuite::class) { |
| useJUnitJupiter(libs.versions.junit5) |
| } |
| |
| register<JvmTestSuite>("functionalTest") { |
| dependencies { |
| implementation(project()) |
| implementation(gradleKotlinDsl()) |
| implementation(platform(libs.junit.bom)) |
| implementation(libs.junit.jupiter.api) |
| implementation(project(":kotlin-test")) |
| |
| runtimeOnly(libs.junit.jupiter.engine) |
| } |
| |
| targets { |
| all { |
| testTask.configure { |
| shouldRunAfter(test) |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| tasks.named("check") { |
| dependsOn(testing.suites.named("functionalTest")) |
| } |
| } |