OpenAPITools / sbt-openapi-generator

Other
26 stars 33 forks source link

Enable publishing to bintray #6

Closed jimschubert closed 4 years ago

jimschubert commented 4 years ago

Bintray doesn't allow SNAPSHOT versions, and we need to account for that if we want the sbt plugin to be available as an sbt community plugin (as SBT uses Bintray exclusively for this).

The workaround is to use sbt-git and have this generate a unique version for any build referencing a SNAPSHOT of openapi-generator, and an explicitly release version when referencing a release of openapi-generator.

This also sets the bintray org to openapitools for publish.

I tested publish to https://bintray.com/beta/#/jimschubert/sbt-plugins/sbt-openapi-generator, but have not pulled this into an SBT project for evaluation.

cc @chameleon82

jimschubert commented 4 years ago

@wing328 thoughts on only publishing this to Bintray? As a regular user of SBT and SBT Plugins, I've just pulled them from where they were available, so I don't think there's a need to publish to multiple repositories.

chameleon82 commented 4 years ago

@jimschubert i found that article with some explanations about snapshots https://reflectoring.io/publish-snapshots-with-gradle/ seems to have proper snapshots we should activate oss.jfrog.com repository the main difference i see bintray - cdn for releases oss - artifactory for development/snapshots both support maven