Skip to content

Commit 3fccce5

Browse files
CristianGMSpace Team
authored and
Space Team
committed
Expose createIdeaHomeForTests outputDir and use it instead of dependsOn
1 parent ac6ffa9 commit 3fccce5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ val syncMutedTests = tasks.register("syncMutedTests") {
739739
tasks.register("createIdeaHomeForTests") {
740740
val ideaBuildNumberFileForTests = ideaBuildNumberFileForTests()
741741
val intellijSdkVersion = rootProject.extra["versions.intellijSdk"]
742-
outputs.file(ideaBuildNumberFileForTests)
742+
outputs.dir(ideaHomePathForTests())
743743
doFirst {
744744
with(ideaBuildNumberFileForTests.get().asFile) {
745745
parentFile.mkdirs()

repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/tasks.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ fun Project.projectTest(
172172
evaluationDependsOn(":test-instrumenter")
173173
}
174174
return getOrCreateTask<Test>(taskName) {
175-
dependsOn(":createIdeaHomeForTests")
176-
inputs.dir(File(rootDir, "build/ideaHomeForTests")).withPathSensitivity(PathSensitivity.RELATIVE)
175+
inputs.files(rootProject.tasks.named("createIdeaHomeForTests").map { it.outputs.files }).withPathSensitivity(PathSensitivity.RELATIVE)
177176

178177
muteWithDatabase()
179178
if (jUnitMode == JUnitMode.JUnit4) {

0 commit comments

Comments
 (0)