{"action":"created","issue":{"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/203","repository_url":"https://api.github.com/repos/gradle/gradle-script-kotlin","labels_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/203/comments","events_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/203/events","html_url":"https://github.com/gradle/gradle-script-kotlin/issues/203","id":196193321,"number":203,"title":"IntelliJ gradle can't find gradleScriptKotlinApi()","user":{"login":"JLLeitschuh","id":1323708,"avatar_url":"https://avatars.githubusercontent.com/u/1323708?v=3","gravatar_id":"","url":"https://api.github.com/users/JLLeitschuh","html_url":"https://github.com/JLLeitschuh","followers_url":"https://api.github.com/users/JLLeitschuh/followers","following_url":"https://api.github.com/users/JLLeitschuh/following{/other_user}","gists_url":"https://api.github.com/users/JLLeitschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/JLLeitschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JLLeitschuh/subscriptions","organizations_url":"https://api.github.com/users/JLLeitschuh/orgs","repos_url":"https://api.github.com/users/JLLeitschuh/repos","events_url":"https://api.github.com/users/JLLeitschuh/events{/privacy}","received_events_url":"https://api.github.com/users/JLLeitschuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-17T03:30:56Z","updated_at":"2016-12-17T05:05:49Z","closed_at":null,"body":"Distribution:\r\n```\r\ndistributionUrl=https\\://repo.gradle.org/gradle/dist-snapshots/gradle-script-kotlin-3.4-20161213170326+0000-all.zip\r\n```\r\n\r\n```\r\nError:Internal error: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: No resolved call for 'gradleScriptKotlinApi()' at (34,13) in /Users/jonathanleitschuh/work/git/plexxicontrol/buildSrc/build.gradle.kts\r\nCause: No resolved call for 'gradleScriptKotlinApi()' at (34,13) in /Users/jonathanleitschuh/work/git/plexxicontrol/buildSrc/build.gradle.kts\r\nFile being compiled and position: (34,13) in /Users/jonathanleitschuh/work/git/plexxicontrol/buildSrc/build.gradle.kts\r\nPsiElement: gradleScriptKotlinApi()\r\nThe root cause was thrown at: callUtil.kt:187\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:312)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:275)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:318)\r\n\tat org.jetbrains.kotlin.codegen.CallGenerator$DefaultCallGenerator.genValueAndPut(CallGenerator.kt:57)\r\n\tat org.jetbrains.kotlin.codegen.CallBasedArgumentGenerator.generateExpression(CallBasedArgumentGenerator.java:73)\r\n\tat org.jetbrains.kotlin.codegen.ArgumentGenerator.generate(ArgumentGenerator.kt:59)\r\n\tat org.jetbrains.kotlin.codegen.CallBasedArgumentGenerator.generate(CallBasedArgumentGenerator.java:60)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2813)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2786)\r\n\tat org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:44)\r\n\tat org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:23)\r\n\tat org.jetbrains.kotlin.codegen.OperationStackValue.putSelector(StackValue.kt:65)\r\n\tat org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:112)\r\n\tat org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:105)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.generateBlock(ExpressionCodegen.java:1796)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.generateBlock(ExpressionCodegen.java:1737)\r\n\tat org.jetbrains.kotlin.codegen.CodegenStatementVisitor.visitBlockExpression(CodegenStatementVisitor.java:56)\r\n\tat org.jetbrains.kotlin.codegen.CodegenStatementVisitor.visitBlockExpression(CodegenStatementVisitor.java:22)\r\n\tat org.jetbrains.kotlin.psi.KtBlockExpression.accept(KtBlockExpression.java:44)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:293)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.genStatement(ExpressionCodegen.java:356)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:322)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.returnExpression(ExpressionCodegen.java:2232)\r\n\tat org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$FunctionDefault.doGenerateBody(FunctionGenerationStrategy.java:49)\r\n\tat org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$CodegenBased.generateBody(FunctionGenerationStrategy.java:69)\r\n\tat org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:392)\r\n\tat org.jetbrains.kotlin.codegen.inline.InlineCodegen.generateMethodBody(InlineCodegen.java:564)\r\n\tat org.jetbrains.kotlin.codegen.inline.InlineCodegen.generateLambdaBody(InlineCodegen.java:519)\r\n\tat org.jetbrains.kotlin.codegen.inline.InlineCodegen.generateClosuresBodies(InlineCodegen.java:498)\r\n\tat org.jetbrains.kotlin.codegen.inline.InlineCodegen.inlineCall(InlineCodegen.java:396)\r\n\tat org.jetbrains.kotlin.codegen.inline.InlineCodegen.genCallInner(InlineCodegen.java:175)\r\n\tat org.jetbrains.kotlin.codegen.CallGenerator.genCall(CallGenerator.kt:100)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2841)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2786)\r\n\tat org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:44)\r\n\tat org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:23)\r\n\tat org.jetbrains.kotlin.codegen.OperationStackValue.putSelector(StackValue.kt:65)\r\n\tat org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:112)\r\n\tat org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:105)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.putStackValue(ExpressionCodegen.java:338)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:323)\r\n\tat org.jetbrains.kotlin.codegen.MemberCodegen.generateInitializers(MemberCodegen.java:378)\r\n\tat org.jetbrains.kotlin.codegen.ScriptCodegen.genConstructor(ScriptCodegen.java:220)\r\n\tat org.jetbrains.kotlin.codegen.ScriptCodegen.generateBody(ScriptCodegen.java:104)\r\n\tat org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:119)\r\n\tat org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:115)\r\n\tat org.jetbrains.kotlin.codegen.PackageCodegen.generate(PackageCodegen.java:63)\r\n\tat org.jetbrains.kotlin.codegen.KotlinCodegenFacade.generatePackage(KotlinCodegenFacade.java:99)\r\n\tat org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:77)\r\n\tat org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:44)\r\n\tat org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:432)\r\n\tat org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyzeAndGenerate(KotlinToJVMBytecodeCompiler.kt:364)\r\n\tat org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileScript(KotlinToJVMBytecodeCompiler.kt:557)\r\n\tat org.gradle.script.lang.kotlin.support.KotlinCompilerKt.compileKotlinScript(KotlinCompiler.kt:65)\r\n\tat org.gradle.script.lang.kotlin.provider.KotlinBuildScriptCompiler.compileScriptFile(KotlinBuildScriptCompiler.kt:180)\r\n\tat org.gradle.script.lang.kotlin.provider.KotlinBuildScriptCompiler.access$compileScriptFile(KotlinBuildScriptCompiler.kt:46)\r\n\tat org.gradle.script.lang.kotlin.provider.KotlinBuildScriptCompiler$twoPassScript$1.invoke(KotlinBuildScriptCompiler.kt:119)\r\n\tat org.gradle.script.lang.kotlin.provider.KotlinBuildScriptCompiler$twoPassScript$1.invoke(KotlinBuildScriptCompiler.kt:46)\r\n\tat org.gradle.script.lang.kotlin.provider.KotlinScriptPlugin.apply(KotlinScriptPlugin.kt:38)\r\n\tat org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:38)\r\n\tat org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:25)\r\n\tat org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)\r\n\tat org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)\r\n\tat org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:573)\r\n\tat org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:125)\r\n\tat org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)\r\n\tat org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)\r\n\tat org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:151)\r\n\tat org.gradle.internal.Factories$1.create(Factories.java:22)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:148)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:33)\r\n\tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:112)\r\n\tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:106)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.getBuildAnalysis(DefaultGradleLauncher.java:97)\r\n\tat org.gradle.launcher.exec.GradleBuildController.configure(GradleBuildController.java:74)\r\n\tat org.gradle.tooling.internal.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.java:45)\r\n\tat org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n\tat org.gradle.tooling.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:58)\r\n\tat org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)\r\n\tat org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:79)\r\n\tat org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:51)\r\n\tat org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:59)\r\n\tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)\r\n\tat org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)\r\n\tat org.gradle.util.Swapper.swap(Swapper.java:38)\r\n\tat org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)\r\n\tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)\r\n\tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.HintGCAfterBuild.execute(HintGCAfterBuild.java:44)\r\n\tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n\tat org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)\r\n\tat org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:293)\r\n\tat org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)\r\n\tat org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.AssertionError: No resolved call for 'gradleScriptKotlinApi()' at (34,13) in /Users/jonathanleitschuh/work/git/plexxicontrol/buildSrc/build.gradle.kts\r\n\tat org.jetbrains.kotlin.resolve.calls.callUtil.CallUtilKt.getResolvedCallWithAssert(callUtil.kt:187)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.visitCallExpression(ExpressionCodegen.java:2625)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.visitCallExpression(ExpressionCodegen.java:120)\r\n\tat org.jetbrains.kotlin.psi.KtCallExpression.accept(KtCallExpression.java:35)\r\n\tat org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:293)\r\n\t... 118 more\r\n```\r\n\r\nMy `build.gradle.kts`\r\n```kotlin\r\nbuildscript {\r\n    configure(listOf(repositories, project.repositories)) {\r\n        gradleScriptKotlin()\r\n    }\r\n    repositories {\r\n        mavenLocal()\r\n        mavenCentral()\r\n    }\r\n\r\n\r\n    dependencies {\r\n        classpath(kotlinModule(\"gradle-plugin\"))\r\n    }\r\n}\r\n\r\nconfigurations.all {\r\n    it.resolutionStrategy.force(\"org.codehaus.groovy:groovy-all:2.4.7\")\r\n}\r\n\r\napply {\r\n    plugin(\"kotlin\")\r\n    plugin(\"groovy\")\r\n    from(\"../sharedVersions.gradle\")\r\n}\r\n\r\nrepositories {\r\n    mavenCentral()\r\n    jcenter()\r\n}\r\n\r\ndependencies {\r\n    compile(gradleApi())\r\n    compile(localGroovy())\r\n    compile(gradleScriptKotlinApi())\r\n    compile(group = \"org.apache.maven\", name = \"maven-artifact\", version = \"3.3.9\")\r\n    compile(group = \"com.linkedin.pygradle\", name = \"pivy-importer\", version = \"0.3.35\")\r\n    compile(group = \"com.linkedin.pygradle\", name = \"pygradle-plugin\", version = \"0.3.35\")\r\n    compile(group = \"postgresql\", name = \"postgresql\", version = project.extra[\"postgresqlVersion\"].toString())\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/comments/267743841","html_url":"https://github.com/gradle/gradle-script-kotlin/issues/203#issuecomment-267743841","issue_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/203","id":267743841,"user":{"login":"JLLeitschuh","id":1323708,"avatar_url":"https://avatars.githubusercontent.com/u/1323708?v=3","gravatar_id":"","url":"https://api.github.com/users/JLLeitschuh","html_url":"https://github.com/JLLeitschuh","followers_url":"https://api.github.com/users/JLLeitschuh/followers","following_url":"https://api.github.com/users/JLLeitschuh/following{/other_user}","gists_url":"https://api.github.com/users/JLLeitschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/JLLeitschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JLLeitschuh/subscriptions","organizations_url":"https://api.github.com/users/JLLeitschuh/orgs","repos_url":"https://api.github.com/users/JLLeitschuh/repos","events_url":"https://api.github.com/users/JLLeitschuh/events{/privacy}","received_events_url":"https://api.github.com/users/JLLeitschuh/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T05:05:49Z","updated_at":"2016-12-17T05:05:49Z","body":"Is my problem that I'm trying to mix kotlin and groovy? "}}
{"actor":{"display_login":"JLLeitschuh"}}