[Pill] Fix importing after ideaHomePathForTests() signature change

Before, the 'File' was returned. Now, it's 'Provider<Directory>'.
This commit is contained in:
Yan Zhulanow
2023-12-08 14:55:13 +09:00
committed by Space Team
parent 0b31d70ce9
commit c499095382
+1 -1
View File
@@ -33,7 +33,7 @@ fun runPillTask(taskName: String) {
val runMethod = pillImporterClass.declaredMethods.single { it.name == "run" }
require(Modifier.isStatic(runMethod.modifiers))
val platformDir = rootProject.ideaHomePathForTests()
val platformDir = rootProject.ideaHomePathForTests().get().asFile
val resourcesDir = File(project.projectDir, "resources")
runMethod.invoke(null, project.rootProject, taskName, platformDir, resourcesDir)