Closed jimschubert closed 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.
@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
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