Open msridhar opened 1 month ago
@liblit do you have any ideas?
I do not. ☹️
we should probably document somewhere how to add new Gradle plugins to the WALA build. The set of changes I had to do seemed rather non-standard compared to any docs I found.
That's a fine idea. The changes you made look correct to me, but they certainly grew complicated due to interactions with two advanced Gradle features we are already using: version catalogs and script plugins.
@liblit do you have any ideas?
I do not. ☹️
Ok, will see when I can investigate.
we should probably document somewhere how to add new Gradle plugins to the WALA build. The set of changes I had to do seemed rather non-standard compared to any docs I found.
That's a fine idea. The changes you made look correct to me, but they certainly grew complicated due to interactions with two advanced Gradle features we are already using: version catalogs and script plugins.
Yup, ideally, we should have instructions for translating steps like these for adding a plugin to what needs to be done with our build config. Figuring out what should go in this line in particular was non-obvious to me.
Figuring out what should go in this line in particular was non-obvious to me.
Yeah, I can understand why. A simpler project would use the version catalog's [plugins]
section, not the [libraries]
section, to describe Gradle plugins. But in our case, you're not really using Checker Framework as a plugin. Rather, you are using it as a library in the implementation of java.gradle.kts
, which is itself a so-called "script plugin". I think that's why quite a few other Gradle plugins are already listed in [libraries]
rather than [plugins]
.
I wanted to play around with running the Checker Framework on WALA code, so I tried adding its Gradle plugin. My WIP change is here. With these changes, when I try to run Gradle I get a crash:
Not too sure what the root cause would be. @liblit do you have any ideas? Nothing urgent.
Incidentally, we should probably document somewhere how to add new Gradle plugins to the WALA build. The set of changes I had to do seemed rather non-standard compared to any docs I found.