Skip to content

Commit

Permalink
Prettify configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishkun committed Oct 5, 2024
1 parent 575fe22 commit a2bf67c
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,30 @@ java {
}
}

val uiTestConfiguration by configurations.registering {
isCanBeResolved = true
isCanBeConsumed = false
}

val uiTest by sourceSets.registering {
kotlin.srcDirs("src/uiTest/kotlin")
resources.srcDir("src/uiTest/resources")

compileClasspath += sourceSets.main.get().output + configurations.testCompileClasspath.get() + configurations.compileClasspath.get() + uiTestConfiguration.get()
runtimeClasspath += sourceSets.main.get().output + configurations.testRuntimeClasspath.get() + configurations.runtimeClasspath.get() + uiTestConfiguration.get()
compileClasspath += sourceSets.main.get().output
runtimeClasspath += sourceSets.main.get().output
}

val uiTestImplementation by configurations.getting {
extendsFrom(configurations.testImplementation.get())
}

val uiTestRuntimeOnly by configurations.getting {
extendsFrom(configurations.testRuntimeOnly.get())
}

kover {
merge {
projects(":")
sources {
excludedSourceSets.add("uiTest")
}
}
}

val uiTests by intellijPlatformTesting.testIdeUi.registering {
Expand Down Expand Up @@ -92,7 +105,7 @@ dependencies {
intellijPlatform {
intellijIdeaCommunity("2024.2.3")
testFramework(TestFrameworkType.Platform)
testFramework(TestFrameworkType.Starter, configurationName = uiTestConfiguration.name)
testFramework(TestFrameworkType.Starter, configurationName = "uiTestImplementation")
pluginVerifier()
}
implementation("com.typesafe:config:1.4.2")
Expand Down

0 comments on commit a2bf67c

Please sign in to comment.