diff --git a/src/modules/coursier.ts b/src/modules/coursier.ts index 38ab1e38..5c547126 100644 --- a/src/modules/coursier.ts +++ b/src/modules/coursier.ts @@ -10,7 +10,7 @@ import {type NonEmptyString} from '../core/types' * Installs `coursier` and add its executable to the `PATH`. * * Once coursier is installed, installs `scalafmt` - * `scalafix` and `scala-cli` tools. + * `scalafix`, `sbt` and `scala-cli` tools. * * Throws error if the installation fails. */ @@ -32,7 +32,7 @@ export async function install(): Promise { await exec.exec( 'cs', - ['install', 'scalafmt', 'scalafix', 'scala-cli', '--install-dir', binary], + ['install', 'scalafmt', 'scalafix', 'scala-cli', 'sbt', '--install-dir', binary], { silent: true, listeners: {stdline: core.debug, errline: core.debug}, @@ -51,6 +51,10 @@ export async function install(): Promise { core.info(`✓ Scalafix installed, version: ${scalafixVersion.trim()}`) + const sbtVersion = await execute('cs', 'launch', 'sbt', '--', 'sbtVersion') + + core.info(`✓ SBT installed, version: ${sbtVersion.trim()}`) + core.info('✓ scala-cli installed') } catch (error: unknown) { core.debug((error as Error).message)