Error during :generate task in hello world application
cleversonledur opened this issue · 1 comments
cleversonledur commented
I am trying to create a hello-world application and deploy this to AWS. However, I am getting the following error during the :generate task.
Execution failed for task ':generate'.
> 'org.jetbrains.kotlin.analyzer.AnalysisResult org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(org.jetbrains.kotlin.com.intellij.openapi.project.Project, java.util.Collection, org.jetbrains.kotlin.resolve.BindingTrace, org.jetbrains.kotlin.config.CompilerConfiguration, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function2, org.jetbrains.kotlin.com.intellij.psi.search.GlobalSearchScope, int, java.lang.Object)'
I am using the following build.gradle.kts configuration:
import io.kotless.plugin.gradle.dsl.kotless
group = "com.poc.spotify.kotless"
version = "0.1"
plugins {
kotlin("jvm") version "1.5.10" apply true
id("io.kotless") version "0.1.6" apply true
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation("io.kotless", "kotless-lang", "0.1.7-beta-5")
}
kotless {
config {
bucket = "com.poc.spotify.kotless"
terraform {
profile = "my.kotless.user"
region = "eu-west-1"
}
}
webapp {
lambda {
kotless {
packages = setOf("com.poc.spotify.kotless")
}
}
}
extensions {
local {
port = 9090
}
}
}
And, I am using gradle version 6.5.1,
When I run this locally using gradle local
ou gradle build
this works. However, if I try a gradle generate
or gradle deploy
the error occurs in generate task.
Can this be a problem with the versions I am using?
TanVD commented
For now, Kotless supports only 1.4.* versions :) We will fix it soon.