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

Cannot release artifacts of multiple Scala versions to Sonatype when running in Travis CI #32

Closed
Atry opened this issue Mar 14, 2019 · 2 comments

Comments

@Atry
Copy link

Atry commented Mar 14, 2019

I have a Scala library that crosses multiple Scala versions, and I want to release early to Sonatype in Travis CI. Therefore I have the following configuration in .travis.yml:

scala:
  - 2.11.12
  - 2.12.8
  - 2.13.0-M4

Travis CI started three containers for the three different Scala versions. When sbt releaseEarly is executed, each container created a staging repository, and run sonatypeRelease command after artifacts are published to the staging repository.

Unfortunately, since there are three staging repositories in total, sonatypeRelease reports an error message as following:

[error] Multiple repositories are found:
[error] [comthoughtworksdsl-1037] status:open, profile:com.thoughtworks.dsl(bb5bd533a8c47) description: Implicitly created (auto staging).
[error] [comthoughtworksdsl-1038] status:open, profile:com.thoughtworks.dsl(bb5bd533a8c47) description: Implicitly created (auto staging).
[error] [comthoughtworksdsl-1039] status:open, profile:com.thoughtworks.dsl(bb5bd533a8c47) description: Implicitly created (auto staging).

The full CI log can be found at https://travis-ci.org/ThoughtWorksInc/Dsl.scala/builds/506086649

@Atry Atry changed the title Cannot release artifacts multiple Scala versions to Sonatype when running in Travis CI Cannot release artifacts of multiple Scala versions to Sonatype when running in Travis CI Mar 14, 2019
@JanBessai
Copy link
Contributor

Not sure, if this is fixed now. Otherwise you can try to do

sbt +releaseEarly sonatypeBundleRelease

with cross scala versions set in sbt instead of maven.
Here is an example, where I got things working: https://github.com/combinators/shapeless-feat

@jvican
Copy link
Owner

jvican commented Mar 16, 2020

Yes, this should be fixed now, I'm closing

@jvican jvican closed this as completed Mar 16, 2020
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

3 participants