Skip to content

Conversation

WojciechMazur
Copy link
Contributor

Fixes #3943 - allows the end user to use the minimal Scala 2.13.8 version under the limitations of SIP-51

…cala 2.13 to allow using bigger variarity of Scala versions by the users
@WojciechMazur WojciechMazur changed the title build: Publish Scala 2.13 artifacts using oldest cross compiled version of Scala 2.13 improve [build]: Publish Scala 2.13 artifacts using oldest cross compiled version of Scala 2.13 Jun 4, 2024
@WojciechMazur WojciechMazur merged commit d94c180 into scala-native:main Jun 4, 2024
@WojciechMazur WojciechMazur deleted the build/release-2.13-using-oldest branch June 4, 2024 20:17
@@ -46,7 +46,8 @@ jobs:
java-version: 8

- name: Compile everything
run: sbt "++3.1.3; Test/compile"
# Publish 2.13.latest artifacts locally first, these are required by scalalib3
run: sbt "scalalib2_13/publishLocal;clean; ++2.13.8; ++3.1.3; Test/compile"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't ; ++2.13.8; ++3.1.3 the same as ; ++3.1.3? @WojciechMazur

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in case of our build - we have dedicated projects split by binary version, eg. scalalib2_13, scalalib3. Each of these has a dedicated crossScalaVersions dependent on the targeted binary version. Because scalalib3/crossScalaVersions does not define any Scala 2 versions the Scala version switch using ++ operator would be ignored in this project, but would be applied in scalalib2_13. This allows us to safety apply ++ operator twice as it would only modify part of the projects

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

Successfully merging this pull request may close these issues.

0.5.2 does not work with Scala 2.13.13 or lower versions due to SIP-51
2 participants