File -> Open -> Choose dir with build.gradle...
# gradle
g
File -> Open -> Choose dir with build.gradle.kts -> Open
👍 1
n
thanks 🙂 it worked.
However, the entire build file is all red. Do I need any plugin ?
g
Nope, but IDE support is still not perfect. Sometimes you should close and open project again.
Only plugin that you need is kotlin plugin
n
not sure why, but even after closing and invalidating cache isn’t making it go away..
g
could you build project from IDE?
n
unfortunately, no. It builds from cli. IDEA doesn’t recognize it as gradle project I guess, the gradle tool window is not available as well
g
Try to delete.
.idea
and and
*iml
, looks like first time when you opened it your project imported by wrong way
You should see dialog with gradle configuration when you first time opened gradle project
n
I deleted the entire repo and re-cloned it. reimported to idea this tym, still doesn’t show the dialog for gradle, niether shows the gradle tool window
g
Is that open source repo?
n
g
Hmm, yeah, I see. Just try to import project explicitly. (close project and choose “Import project” on Idea start dialog)
n
yes, now it behaves like a gradle project.
thanks man !! 🙂
only few things its still show errors.
task<GulpTask>(“gulpBuild”) { dependsOn(YarnInstallTask.NAME) inputs.dir(“src/main/sass”) inputs.dir(“src/main/ts”) inputs.dir(“src/main/images”) outputs.dir(“build/resources/main/static”) args = listOf(“build”) } task<GulpTask>(“gulpClean”) { dependsOn(YarnInstallTask.NAME) inputs.dir(“build/.tmp”) outputs.dir(“build/resources/main/static”) args = listOf(“clean”) } in this section: Type arguments is not within bounds
g
Some bug, same for me. Changed GulpTask -> Task, then Task -> GulpTasks. Don’t know what is the reason, maybe some classpath conflict on initial configuration
n
Ohh.. Anyways thanks a lot man. Almost everything is working 😄
g
Anyway, it works for me after “GulpTask -> Task, then Task -> GulpTasks”, looks like some cache just recreated and works now, including code completion
👍 1