Sam Pengilly
04/21/2023, 1:14 AMCasey Brooks
04/21/2023, 3:04 AMbuildSrc
logic for my libraries to an included build. The included build repo has everything I need as script plugins, and hopefully can help with what you’re looking for. The repo also has a version catalog file to help me maintain the same dependency versions across all my libraries.
The included build repo is not currently set up as a monorepo, but I don’t think too much would need to be changed if you were to try and break it out into smaller submodules rather than the single big one that I currently use.
Here’s the included build repo, which gets checked into the library repos as a Git submodule, and included into the library’s Gradle build like this. I can then include each script plugin however I need by their id("script-plugin-name")
, which is needed because accessors don’t seem to be generated for these script plugins like they would have been from buildSrc
jendrik
04/21/2023, 6:37 AMCLOVIS
04/21/2023, 7:42 AMgradle/conventions
: https://gitlab.com/opensavvy/pedestal
It's inspired by https://github.com/jjohannes/idiomatic-gradleCLOVIS
04/21/2023, 8:39 AM