Slackbot
11/22/2022, 2:47 AMHemanth Sai Veluvolu
11/22/2022, 3:25 AMEric Haag
11/22/2022, 3:29 AMmavenLocal()
, you can apply Repository content filtering to control which dependencies are resolved on a per repository basis.
A Build Scan is also a good suggestion.Eric Haag
11/22/2022, 3:32 AMgrossws
11/22/2022, 3:43 AMEli Graber
11/22/2022, 3:46 AMmavenLocal
when I need it, and remove it before committing my changes. However it slows down my velocity slightly, and I'd like to speed it up by just always having mavenLocal
used (for non ci builds).
If the local repo is usually empty, would there still be a performance issue?grossws
11/22/2022, 3:47 AMEric Haag
11/22/2022, 3:52 AMComposite builds allow you to combine builds that are usually developed independently, for instance when trying out a bug fix in a library that your application uses
Based on what you've said so far, it does seem this describes your use case.
Eli Graber
11/22/2022, 4:10 AMgrossws
11/22/2022, 4:16 AMsettings.gradle[.kts]
in the dependee with additional bonus of compilation avoidance. And the dependency will be the same GAV coordinates. If you use maven local you already had to modify dependee build to use -SNAPSHOT
dependency anywayEli Graber
11/22/2022, 7:05 AMmavenLocal
to the top of the repositories
(which I'd like to be a one time thing)
VS
Add an includeBuild
statement for each library I need
So the includeBuild
route could technically require more changes if I need more than one library (which has happened), but I'll balance that out with not needing to first deploy the library to maven local.
In either case, there's still set up and clean up that has to happen, which is what I'm trying to avoid.ephemient
11/22/2022, 7:18 AMsettings.gradle.kts
can contain logic, such as "`includeBuild` if the directory exists"Vampire
11/22/2022, 8:14 AM--include-build
.Eli Graber
11/22/2022, 9:45 AM