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

Backport "Bundle scala cli in scala command" to 3.5.0 #20706

Merged

Commits on Jun 20, 2024

  1. Bundle scala cli in scala command (scala#20351)

    fixes scala#20098
    
    Proposed changes to zip/targz archive:
    - in the `/bin` directory store an extra launcher for Scala CLI (either
    JAR, or native per platform).
    - `/bin/scala[.bat]` is modified to invoke Scala CLI stored in `/bin`
    - new `/maven2` directory, which stores all the Jars and POM files
    necessary (in maven repo style) for scala-cli to invoke scala compiler
    offline (using the `-r` launcher option).
    - CHOICE: either replace jar files in `/lib` by aliases to the
    corresponding jar in `/maven2`, OR delete `/lib` and update references
    from scripts. (Looks like symlinks are not portable, so probably we
    should encode the classpath in a file, or adjust slightly how we build
    the toolchain)
    - add platform specific suffixes to artefacts:
    - e.g. `scala-3.5.0-x86_64-pc-linux.tar.gz` (for the artefact that
    bundles the x64 linux launcher)
    
    ---------
    
    Co-authored-by: Hamza REMMAL <[email protected]>
    2 people authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    665bd20 View commit details
    Browse the repository at this point in the history