How to add Classifier for dependencies based on git branch name?


(kavin kankeshwar) #1

I would like to use the current branch name and add that as a classifier for the dependency resolution, If its not a particular branch then would like to default with no classifiers, I could not find an sample code or example which did something similar to this.

Any thoughts on how can i do the following ?


(Jörn Huxhorn) #2

I access git info in my GitStatePlugin using JGit.

This isn’t doing what you want but it could serve as an inspiration.