Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up repositories for publishing releases and snapshots #5

Open
chameleon82 opened this issue Mar 2, 2020 · 13 comments
Open

Set up repositories for publishing releases and snapshots #5

chameleon82 opened this issue Mar 2, 2020 · 13 comments

Comments

@chameleon82
Copy link
Contributor

Define which repositories this artefact will be published.

At least, for sbt community it should be published to https://bintray.com/sbt/sbt-plugin-releases, I believe @eed3si9n can help us on it.

@jimschubert
Copy link
Member

We have a bintray account, but I don't have the details. I'll set this up once I get the credentials.

@jimschubert
Copy link
Member

I've been added to our bintray account. The documentation for publishing to bintray is fairly straightforward… https://www.scala-sbt.org/1.x/docs/Bintray-For-Plugins.html

@jimschubert
Copy link
Member

I've gotten this working. Please evaluate when you have a chance: https://bintray.com/beta/#/openapitools/sbt-plugins/sbt-openapi-generator?tab=overview

Bintray doesn't support snapshots, so non-release plugins have a funky looking suffix.

I'm thinking about doing an automated monthly "snapshot" build (to reduce cluttering artifacts too much), then a release version build + tag. We can build ad-hoc as well for the "snapshot" releases, but the scala generators change so infrequently.

@chameleon82
Copy link
Contributor Author

I found snapshots supported by oss.jfrog.com repository which likely could be activated with bintray
the main difference i see
bintray - cdn for releases
oss - artifactory for development/snapshots
both support maven

some details found in next article https://reflectoring.io/publish-snapshots-with-gradle/

@jimschubert
Copy link
Member

Thanks. I wasn't able to sign up for oss.jfrog.org. It seems like they now have a different offering for OSS at https://jfrog.com/artifactory/saas-gcp/. I've requested OSS access here, but the email they respond with refers to a 14 day free trial. I guess we'll see what goes down with that.

I think I'll hold off on the 4.3.0 release of the SBT plugin for a couple days, because I'd rather that be synced to JFrog's Artifactory if possible.

@jimschubert
Copy link
Member

Also, the bintray user interface doesn't have the option to link as the blog post you posted has. I google for other tutorials, which all reference that option. I don't see it in the old or the new UI, and I'm an admin on the project.
¯\_(ツ)_/¯

@chameleon82
Copy link
Contributor Author

@jimschubert i've checked my repo and i have this button for my repo
https://bintray.com/adenza/sbt-plugins/sbt-openapi-generator
It should be here https://bintray.com/openapitools/sbt-plugins/sbt-openapi-generator in right bottom corner in section Linked to (0)
If button not there it could be for next reasons:

  • VCS not point to github project
  • Maturity setting is incorrect ( in my repo i have Development configured)
  • something else

@chameleon82
Copy link
Contributor Author

@jimschubert i've tested snapshot one more time
next configuration works fine

project/plugins.sbt

// resolver to access to sbt-plugin in bintray
resolvers += Resolver.bintrayIvyRepo("openapitools", "sbt-plugins")

// resolver to access oss snapshots for `org.openapitools#openapi-generator-core;4.3.0-SNAPSHOT`
externalResolvers += Resolver.sonatypeRepo("snapshots")

// version
addSbtPlugin("org.openapitools" % "sbt-openapi-generator" % "4.3.0-20200404T011651-5e6cf6a9")

@jimschubert
Copy link
Member

I'll go ahead and release the 4.3.0 version. JFrog never responded about the artifactory hosting, and I'm blocked in usage of Bintray and its cryptic errors and usage. We can always review and change the hosting strategy in the future.

@jimschubert
Copy link
Member

  • VCS not point to github project
  • Maturity setting is incorrect ( in my repo i have Development configured)
  • something else

The UI doesn't allow me to set the github project, it keeps saying it's not found. I've also tried all maturity levels and nothing resolves. I'm an admin on the project.

@chameleon82
Copy link
Contributor Author

@jimschubert here is instruction how to link package to sbt organization and make it available by default resolvers https://www.scala-sbt.org/1.x/docs/Combined+Pages.html#Linking+your+package+to+the+sbt+organization

@jimschubert
Copy link
Member

Thanks. I'd followed those but seems to be an issue in Bintray since I'm an admin but don't have the option.

@chameleon82
Copy link
Contributor Author

I found the issue why we cannot connect repo to jcenter. It is because Repository "sbt-plugins
" was created with "Repository Type" = "Generic" rather than "Maven". Seems to have it we might need to recreate repository as it is not possible to change repository type after it was created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants