IDK how well this would work on a gradle script but might be interesting to try on yarn or something.