Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

vic/scala-cli-g8

Giter8 launcher for scala-cli

vic/scala-cli-g8.json
{
"defaultBranch": "main",
"description": "Giter8 launcher for scala-cli",
"fullName": "vic/scala-cli-g8",
"homepage": "",
"language": "Scala",
"name": "scala-cli-g8",
"pushedAt": "2023-08-11T07:57:47Z",
"stargazersCount": 1,
"updatedAt": "2023-12-11T09:30:50Z",
"url": "https://github.com/vic/scala-cli-g8"
}

This project provides a g8 template for GitHub hosted scala-cli projects.

Terminal window
scala-cli run https://raw.githubusercontent.com/vic/scala-cli-g8/main/setup.scala
  • Automatically setups GitHub actions workflow.
  • If your project is a library, its maven artifacts are automatically published at JitPack.
  • If your project is a binary, new tags are automatically packaged and published on GitHub releases.

Using this launcher you can generate any giter8 template.

Terminal window
scala-cli run https://raw.githubusercontent.com/vic/scala-cli-g8/main/g8.scala -- --help

Using this launcher runs coursier allowing you to use all of its features like running jar published apps.

Terminal window
scala-cli run https://raw.githubusercontent.com/vic/scala-cli-g8/main/cs.scala -- --help

For example, to launch

Currently the only launchers for giter8 were sbt new and g8 itself, both of which have to be already available on the user’s system.

However, as scala-cli becomes more popular, it’s much more probable that people will have scala-cli available before they even get to use sbt on their projects.

This repo provides a one-liner launcher that can be run using scala-cli and let people benefit from templates.