When developing with gradle the publishPlugin can take a channel name.
This then allows me to publish to an EAP channel if I so wish.
However, the devil is in the details.
Ideally I would want to publish to the main repo when I do releases from the master branch.
However, I would want to publish to the EAP channel when building from other branches.
What is the pattern for this?
Do you set an environment variable for the channel and set it to an empty string by default?
When empty, this uses the default plugin repository, available to all JetBrains Plugins Repository users.
What about the version number?
After I have finished EAP does the stable version number have to be higher than the EAP version number?
Do I even have to increment the version number when publishing multiple versions to the EAP?
Do people do that via commits or via environment properties in the build server?
Is there an easy way to create an incrementing version number?
If I was using SVN I could use the svn repo version number but since I'm using git I have a hash and not a convenient number to use.
Are there any good examples of doing this?