How to package plugin for all build configurations?

I’m trying to do the same thing, and after a couple days of trying, I’m also not able to get this to work. I would love to get some help with this.