Skip to content
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

Version 2.13.6 pulls in scala3 dependencies #1214

Closed
nbauernfeind opened this issue Sep 5, 2021 · 1 comment · Fixed by #1215
Closed

Version 2.13.6 pulls in scala3 dependencies #1214

nbauernfeind opened this issue Sep 5, 2021 · 1 comment · Fixed by #1215

Comments

@nbauernfeind
Copy link
Contributor

nbauernfeind commented Sep 5, 2021

It's quite inconvenient that com.lihaoyi:ammonite_2.13.6 pulls in scala 3.0. Is this intentional?

See the generated pom file:
https://search.maven.org/artifact/com.lihaoyi/ammonite-cross-23-util_2.13/2.4.0-19-f4790b61/jar

Without modification, when attempting to compile a REPL line, I get this obscure runtime error:

fansi.Attrs does not take parameters

If I explicitly exclude the scala3 dependencies and grab the 2.13 versions, then I can again use the REPL.

@nbauernfeind
Copy link
Contributor Author

To be extra clear, these are the dependencies that I exclude and include back into the project:

    implementation('com.lihaoyi:ammonite_2.13.6:2.4.0-19-f4790b61') {
        exclude group: 'com.lihaoyi', module: 'pprint_3'
        exclude group: 'com.lihaoyi', module: 'fansi_3'
        exclude group: 'org.scala-lang', module: 'scala3-library_3'
    }
    implementation 'com.lihaoyi:pprint_2.13:0.6.6'
    implementation 'com.lihaoyi:fansi_2.13:0.2.14'

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 a pull request may close this issue.

1 participant