MCPcopy Index your code
hub / github.com/coursier/setup-action

github.com/coursier/setup-action @v3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0 ↗ · + Follow
5 symbols 17 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Coursier setup GitHub Action

A GitHub Action to install Coursier and use it to install Java and Scala CLI tools.

It can be useful if you want to install a specific version of JVM or use a build tool like mill or seed.

Inspired by olafurpg/setup-scala and the blog post Single command Scala setup by Alex Archambault (author of Coursier).

Features

  • run it on any platform: Linux, MacOS, Windows
  • install any JVM you need
  • setup the build tool of your choice: sbt, mill, seed, etc.
  • install other common Scala CLI tools: Ammonite, Bloop, giter8, etc.

Inputs

  • jvm (optional): JVM to install
  • one of the options from cs java --available.
  • if left empty either the existing JVM will be used or Coursier will install its default JVM.

  • jvm-index (optional): The JVM index source

  • arbitrary URL containing the JVM index source like in cs java --available --jvm-index https://url/of/your/index.json.
  • if left empty the coursier index will be used as default JVM index source

  • apps (optional): Scala apps to install (sbtn by default)

  • space separated list of app names (from the main channel)

  • customRepositories (optional): ''

  • Pipe separated list of repositories to supply to coursier

  • disableDefaultRepos (optional): 'false'

  • Whether or not to pass the --no-default flag to coursier

  • extraJvmArgs (optional): ''

  • Space-separated list of -D JVM property args passed to every cs invocation. The -J prefix is added automatically if missing.
  • e.g. -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=8080

Example with custom inputs

  steps:
    - uses: actions/checkout@v2
    - uses: coursier/setup-action@v1
      with:
        jvm: adopt:11
        jvm-index: https://url/of/your/index.json
        apps: sbtn bloop ammonite
        disableDefaultRepos: true
        customRepositories: https://packages.corp.com/maven

Outputs

  • cs-version: version of the installed Coursier (should be the latest available)

Caching

This action should work well with the official Coursier cache-action. For example:

  steps:
    - uses: actions/checkout@v2
    - uses: coursier/cache-action@v6
    - uses: coursier/setup-action@v1

Core symbols most depended-on inside this repo

cs
called by 4
src/main.ts
getCoursierArchitecture
called by 1
src/main.ts
execOutput
called by 1
src/main.ts
downloadCoursier
called by 1
src/main.ts
run
called by 1
src/main.ts

Shape

Function 5

Languages

TypeScript100%

Modules by API surface

src/main.ts5 symbols

For agents

$ claude mcp add setup-action \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact