I’m not entirely sure I understand. What I understand is:
- There’s a Groovy script which selects between (1) normal resolution and (2) some custom resolutionStrategy.
- This script is downloaded from some URL, which must be updated when changing the script.
- You want a way to select which script is used on each project, while avoiding breaking functionality.
- Your suggested solution is:
So I figured that I would like to be able to select certain version of a dependency while on others they should just use the latest integration.
At this point I think I lost you a bit. Are you trying to solve the problem of distributing the script? Or do you want to find a different solution, which will replace the script?