Hi all. Hopefully this is an easy one. I'm working...
# compiler
j
Hi all. Hopefully this is an easy one. I'm working with a custom Kotlin plugin that is adding a
SubpluginOption
that contains an absolute path to a directory. This is causing cache misses on CI for my Gradle build (since Gradle considers these options as task inputs) and I'm wondering if that should just be changed to store a relative file path, or if there is a better way to provide an absolute file path so that Gradle can interpret it as a relative path.
e
Maybe try asking in #gradle
j
Sure. I did and they pointed me here 😆
e
Ouch 😂
When you say custom Kotlin plugin, do you mean compiler plugin or Gradle plugin?
j
I don't know if
FilesSubpluginOption
would be treated as a relative path or not. Sorry, I mean a Kotlin compiler plugin
But the way Gradle works is it looks at the list of all the plugin options as inputs to the Gradle task and build caching will basically hash all the inputs. I've moved some of the options to be
InternalSubpluginOption
that Gradle doesn't need to consider, but this last option is relevant