```12:03:50 AM: Executing task 'runReleaseExecutab...
# gradle
s
Copy code
12:03:50 AM: Executing task 'runReleaseExecutableLinux'...


> Configure project :
Kotlin Multiplatform Projects are an experimental feature.

FAILURE: Build failed with an exception.

* Where:
Script '/home/macropreprocessor/IdeaProjects/kpp/pack.kts' line: 6

* What went wrong:
A problem occurred evaluating script.
> Could not find method recDir() for arguments [{current=class java.io.File}, pack_6jwbnzhp0j5onxijf2qveb5gr$_run_closure2@78e7a62e] on root project 'kpp' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

BUILD FAILED in 0s
Could not find method recDir() for arguments [{current=class java.io.File}, pack_6jwbnzhp0j5onxijf2qveb5gr$_run_closure2@78e7a62e] on root project 'kpp' of type org.gradle.api.Project.
12:03:50 AM: Task execution finished 'runReleaseExecutableLinux'.
e
an easy fix would be to just inline the method
s
Copy code
> Could not get unknown property 'fun' for root project 'kpp' of type org.gradle.api.Project.
g
@Smallville7123 I don't understand context of your problem. What it pack.kts? This is Kotlin script file, but it is not Gradle, so you cannot use nothing from Gradle there. What it suppose to be? Standalone sctipt, but It probably not what you expect, you use Gradle API there Gradle config file? But it is not build.gradle. Did you inlcude it to build.gradle? Precompiled plugin? If so, it should have name pack.gradle.kts and you should put it to buildSrc/src/kotlin/
It's obviously strange problem with strange error message, but maybe Gradle just tried to resolve this kts script somehow, but it's definitely invalid configuration
i
The error messages look like they come from Groovy compiler/runtime