-
Notifications
You must be signed in to change notification settings - Fork 49
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
Added binary versions to module-ignore
inputs
#600
Added binary versions to module-ignore
inputs
#600
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me that looks like the best solution
Global / noPublishModulesIgnore ++= crossScalaVersions.value.map { v => | ||
// the binary versions are needed for the modules-ignore in Submit Dependencies | ||
// it's best to pick them up here instead of guessing in the CI plugin | ||
s"${thisProjectRef.value.project}_${CrossVersion.binaryScalaVersion(v)}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this is not sufficiently general. You should do something like this.
sbt-typelevel/sonatype/src/main/scala/org/typelevel/sbt/TypelevelSonatypePlugin.scala
Lines 78 to 82 in fac0ec2
CrossVersion( | |
crossVersion.value, | |
scalaVersion.value, | |
scalaBinaryVersion.value | |
).map { cross => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, to dog-food this we can add some more no-publish modules to sbt-typelevel's own build.
Maybe one enabling the Scala.js plugin, one disabling cross versions (i.e. a java module) and another enabling full cross versions (i.e. a compiler plugin)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can the crossVersion
be assumed to be the same across all the cross-versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I suppose that has to be the assumption, otherwise everything breaks down 😅
… change to generated CI, illegal configurations are dropped gracefully
no-publish/src/main/scala/org/typelevel/sbt/NoPublishPlugin.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Added the binary scala suffix to the end of the module names for
Submit Dependencies
. The result of the change can be seen in the CI file. Fixes #597