Hi
I tried to build locally a sample project from here: https://github.com/gradle/gradle-script-kotlin/tree/master/samples/hello-world
It worked properly if I used gradlew script(for example, gradlew clean or gradlew assemble).
If I tried to use my default Gradle installation(3.4) every task execution fails with an error:
Caused by: java.lang.ClassCastException: org.jetbrains.kotlin.synthetic.JavaSyntheticPropertiesScope$MyPropertyDescriptor cannot be cast to or
g.jetbrains.kotlin.descriptors.FunctionDescriptor
at org.jetbrains.kotlin.codegen.ExpressionCodegen.accessibleFunctionDescriptor(ExpressionCodegen.java:2724)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.visitCallExpression(ExpressionCodegen.java:2657)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.visitCallExpression(ExpressionCodegen.java:120)
at org.jetbrains.kotlin.psi.KtCallExpression.accept(KtCallExpression.java:35)
at org.jetbrains.kotlin.codegen.CodegenStatementVisitor.visitKtElement(CodegenStatementVisitor.java:31)
at org.jetbrains.kotlin.codegen.CodegenStatementVisitor.visitKtElement(CodegenStatementVisitor.java:22)
at org.jetbrains.kotlin.psi.KtVisitor.visitExpression(KtVisitor.java:178)
at org.jetbrains.kotlin.psi.KtVisitor.visitReferenceExpression(KtVisitor.java:194)
at org.jetbrains.kotlin.psi.KtVisitor.visitCallExpression(KtVisitor.java:270)
at org.jetbrains.kotlin.psi.KtCallExpression.accept(KtCallExpression.java:35)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:293)
… 102 more
Thanks