-
Notifications
You must be signed in to change notification settings - Fork 17
use sbt-dynver, sbt-ci-release, sbt-travisci #65
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
Conversation
@ashawley @Philippus @julienrf opinions? |
IIRC I had problems to use sbt-travisci with Scala.js modules, or with matrix configurations. I don’t remember well. Can we test that? |
Will test with Scala.js; that's a good point. One thing, if I understand correctly, sbt-ci-release closes and releases the staging repo immediately by default. Maybe we want to change this so that the staging repo gets closed, but not released. Have to figure out how. |
let's tag in @olafurpg as well in case he has any considerations or cautions for us |
now that (in 2.13) scala-compiler doesn't depend on scala-xml or scala-parser-combinators, and since the 2.11 and 2.12 dependencies are frozen, I think it would be okay to give our module maintainers full releasing powers, since the modules no longer affect the core integrity of Scala itself |
Yeah, same concern about Scala.js. I also predict Dotty releases will be a requirement soon enough. |
I'll do a 2.1.0-M1 release (then M2, ...) of this plugin to bintray so that I can try it out in some modules. |
not that the numbering really matters, but this feels more like a 3.0 to me 🚀 |
3.0 is fine with me - though i already pushed the changes to the 2.x branch here... I finished testing this with my travis-test repository, which I turned into a fake scala module. I tested cross-building
I set it up so that every cross-build combination has its own travis job. When releasing, some jobs are skipped (JDK 11, dotty+Scala.js). Every job that releases creates its own staging repository. I needed to change sbt-sonatype's sbt-scala-module/src/main/scala/ScalaModulePlugin.scala Lines 43 to 48 in dbd7f45
For now, staging repos are closed but not released. That will be easy to change. Normal tags Config in the test repo:
|
Also, if a job fails because sonatype, one can just re-run it on travis. |
Do you think we could (should?) put the content of https://github.com/lrytz/travis-test/blob/master/build.sh in the sbt plugin so that each Scala module doesn’t have to maintain its own copy of it? |
I think abstracting over all the special needs of the scripts in each repo would cause more pain than keeping them separate. |
Released 2.1.0 https://github.com/scala/sbt-scala-module/releases/tag/v2.1.0 Will do some PRs for modules. |
Use sbt-dynver, sbt-ci-release, sbt-travisci for modules.
Here's how it would look once in use: scala/scala-parallel-collections@master...lrytz:ci-release
I tested things to some degree :-) But opening the PR now to gather some feedback.
What I tested
publishLocal
'd version of the sbt-scala-module