I've made a gradle precompiled script plugin under `buildSrc/`, but IntelliJ isn't quite handling it...
k
I've made a gradle precompiled script plugin under
buildSrc/
, but IntelliJ isn't quite handling it smoothly. It says "The associated Gradle Project isn't imported," and that message won't go away. (the buildSrc is under the root gradle project that certainly is imported) and if I use the type-safe configuration names in my
dependencies
section, intellij's gradle sync fails unable to resolve them, while gradle itself seems just fine with it.
Also posted to gradle forum.
m
Works well for us, https://github.com/TensorFlow-Kotlin/tensorflow-kotlin/blob/master/build.gradle.kts did you registered your plugin ? like https://github.com/TensorFlow-Kotlin/tensorflow-kotlin/blob/master/buildSrc/build.gradle.kts#L27 otherwise clean up gradle cache and deleting iml files may help too
k
Not explicitly, but I thought precompiled script plugins had that part auto-generated. I can certainly refer to it from the project's
plugins
section okay.
Ah, the problem with the auto build failing to resolve the config names when they didn't have quotes is something that did clear up when I did "invalidate caches and restart." the good old "try turning it off and on again"
👍 1