Skip to content

chore(dep): use scala-xml 2.x for everything#2548

Merged
alexarchambault merged 2 commits into
coursier:masterfrom
ckipp01:xmlStrikesAgain
Oct 18, 2022
Merged

chore(dep): use scala-xml 2.x for everything#2548
alexarchambault merged 2 commits into
coursier:masterfrom
ckipp01:xmlStrikesAgain

Conversation

@ckipp01

@ckipp01 ckipp01 commented Oct 14, 2022

Copy link
Copy Markdown
Contributor

This is a continuation or really a revert of what was done in #2274. Originally this was done because Scala 2.12 was on 1.x, but that is no longer the case. You can see the discussion for this in scala/bug#12632. I'm assuming that other things like sbt that will use this will also hit on it as well if it's still on 1.x. See sbt/sbt#6997 for more details on that. This also then bumps Scala 2.12 to 2.12.17 to make sure the scala-xml is aligned there too.

This is a continuation or really a revert of what was done in coursier#2274.
Originally this was done because Scala 2.12 was on 1.x, but that is no
longer the case. You can see the discussion for this in
scala/bug#12632. I'm assuming that other
things like sbt that will use this will also hit on it as well if it's
still on 1.x. See sbt/sbt#6997 for more
details on that. This also then bumps Scala 2.12 to 2.12.17 to make sure
the scala-xml is aligned there too.

@alexarchambault alexarchambault left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @ckipp01! I should merge as soon as the CI is green.

@alexarchambault alexarchambault merged commit 9bf2282 into coursier:master Oct 18, 2022
@ckipp01 ckipp01 deleted the xmlStrikesAgain branch October 18, 2022 16:52
ckipp01 added a commit to ckipp01/sbt-coursier that referenced this pull request Oct 31, 2022
Same reason that I had for coursier/coursier#2548 but
since sbt 1.7.3 was released a bunch of people will see the following:

```
03:31:06  [info] loading global plugins from /root/.sbt/1.0/plugins
03:31:10  [error] java.lang.RuntimeException: found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
03:31:10  [error]
03:31:10  [error] * org.scala-lang.modules:scala-xml_2.12:2.1.0 (early-semver) is selected over {1.3.0, 1.2.0, 1.0.6}
03:31:10  [error]     +- org.scala-lang:scala-compiler:2.12.17              (depends on 2.1.0)
03:31:10  [error]     +- org.scala-sbt:testing_2.12:1.7.3                   (depends on 1.3.0)
03:31:10  [error]     +- org.scala-sbt:sbinary_2.12:0.5.1                   (depends on 1.0.6)
03:31:10  [error]     +- org.scala-sbt:main_2.12:1.7.3                      (depends on 1.3.0)
03:31:10  [error]     +- org.scala-sbt:librarymanagement-core_2.12:1.7.1    (depends on 1.2.0)
03:31:10  [error]     +- io.get-coursier:lm-coursier-shaded_2.12:2.0.12     (depends on 1.3.0)
```
Since there is a mismatch of scala-xml all over the place. Since Scala has bumped
I think it's appropriate the everyone else bumps as well. sbt has also merged in
this change for the 1.8.x series.
ckipp01 added a commit to ckipp01/sbt-coursier that referenced this pull request Oct 31, 2022
Same reason that I had for coursier/coursier#2548 but
since sbt 1.7.3 was released a bunch of people will see the following:

```
03:31:06  [info] loading global plugins from /root/.sbt/1.0/plugins
03:31:10  [error] java.lang.RuntimeException: found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
03:31:10  [error]
03:31:10  [error] * org.scala-lang.modules:scala-xml_2.12:2.1.0 (early-semver) is selected over {1.3.0, 1.2.0, 1.0.6}
03:31:10  [error]     +- org.scala-lang:scala-compiler:2.12.17              (depends on 2.1.0)
03:31:10  [error]     +- org.scala-sbt:testing_2.12:1.7.3                   (depends on 1.3.0)
03:31:10  [error]     +- org.scala-sbt:sbinary_2.12:0.5.1                   (depends on 1.0.6)
03:31:10  [error]     +- org.scala-sbt:main_2.12:1.7.3                      (depends on 1.3.0)
03:31:10  [error]     +- org.scala-sbt:librarymanagement-core_2.12:1.7.1    (depends on 1.2.0)
03:31:10  [error]     +- io.get-coursier:lm-coursier-shaded_2.12:2.0.12     (depends on 1.3.0)
```
Since there is a mismatch of scala-xml all over the place. Since Scala has bumped
I think it's appropriate the everyone else bumps as well. sbt has also merged in
this change for the 1.8.x series.

Relates to sbt/sbt#6997.
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.

2 participants