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

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 ?

I access git info in my GitStatePlugin using JGit.

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