Closed pshirshov closed 5 years ago
hmm, is this a good idea? Private APIs are usually private for a reason...
I meant "nexus-specific".
Aahhhh!
Seems like this issue may be eventually resolved by sbt-sonatype
: https://github.com/xerial/sbt-sonatype/issues/89
I'll open a new ticket instead of this, sbt-sonatype can publish bundles now: https://twitter.com/taroleo/status/1169777599360331776?s=21
Right now we publish all our projects using native SBT functionality and
sbt-sonatype
plugin. And releases take quite a lot of time. Also release repositories may get fragmented so in some cases it may be not possible to promote a release.I've found that using Nexus Bundles may significantly speed the process up.
Right now my flow is:
publishTo
to a local directory (publishTo := Some(Resolver.file("file", new File("target/repo")))
)publishSinged
finishes I have my release with proper Maven layout in my local directoryWe may adopt this approach. Ideally we may implement an SBT plugin doing this (I've opened a ticket for that: https://github.com/sbt/sbt/issues/4958), though we may benefit a lot even from my dirty ANT script.
The script:
The environment:
Short summary:
You may find more details here: https://github.com/sbt/sbt/issues/4958 and here: https://github.com/xerial/sbt-sonatype/issues/83
You may use this project as reference: https://github.com/7mind/izumi and ask me any questions.
Also there was a plugin allowing to run ANT tasks directly from SBT. It's unmaintained though it may be relatively easy to port it to 1.0.