Slackbot
09/15/2023, 8:53 AMVampire
09/15/2023, 9:07 AMMarek
09/15/2023, 9:10 AMVampire
09/15/2023, 9:37 AMVampire
09/15/2023, 9:37 AMMarek
10/09/2023, 2:12 PMMarek
10/09/2023, 2:13 PMbuild.gradle or build.gradle.kts are not taken into account by Dependabot. Another option is to use a TOML file, but it is not yet supported in precompiled script plugins.
Reference:
https://github.com/gradle/gradle/issues/15383
https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#gradleVampire
10/09/2023, 2:22 PMThe reason here is that files named differently thanThen don't use such a bad tool. 😉 I would never call more than one fileorbuild.gradleare not taken into account by Dependabot.build.gradle.kts
build.gradle in a multi-project build, even without any precompiled script plugins involved.
Did you ever try to find the correct file in a build with 30 projects where all files are called the same?
And debugging the build is virtually impossible too, as the breakpoints in that case only consider the filename and so very often stop in the wrong file visually.
Another option is to use a TOML file, but it is not yet supported in precompiled script plugins.Well, you can use the string-y API that is officially supported and you can use my hack-around described in that issue, that practically has the same preconditions like the string-y API and is practically just a bit syntactic sugar over it. Or you could consider using a better of those imho non-sense version-update-bots. Renovate for example is much better than Dependeabot and supports many more cases. I don't know whether it supports versions in precompiled script plugins, as I don't use such tools.
Marek
10/09/2023, 3:31 PMVampire
10/09/2023, 8:43 PMMarek
10/10/2023, 2:55 PMMarek
10/10/2023, 3:01 PMVampire
10/10/2023, 5:18 PMI tried, but I didn't manage to make it work when publishing these plugins using Maven.Why not? It simply gets the catalog and the entries by strings instead of type-safe accessors. Of course it requires that the target project does have that catalog and theses entries. Exactly the same requirement as for my hack-around where you can use the accessors.
So I would appreciate it if you could provide further details regarding this response:Examples of what? As I said there, either you need to generate some accessors from the version catalog and thus do not need to have the version catalog at the target project as you no longer use version catalogs, or you could publish the version catalog as described in the userguide and then require that the target project applies that version catalog, or provide a settings plugin that does it for the target project and require the target project to apply that settings plugin. If you decide to follow one of theses ways, feel free to ask questions if you get stuck somewhere, but I'm not going to code it for you. I'm sorry, but 🥄s are out.
Marek
10/10/2023, 7:20 PM