Skip to content

1. Getting Started

Before you can write Uni code, your machine needs a JDK, an sbt that knows how to fetch Scala 3, and a project wired to pull Uni in. This part of the book gets you there, then writes enough of a program to prove everything is hooked up.

Two chapters, in order:

  • 1.1 Installation — prerequisites, a minimal build.sbt, and how to pull Uni into JVM-only, Scala.js, and Scala Native projects.
  • 1.2 Hello, Uni! — your first runnable Uni program. It is only a dozen lines, but by the end of it you will have met the two concepts that thread through the rest of the book: logging and Design (object wiring).

By the end of Part I, a fresh clone of your project should compile and run. Part II then turns that starting point into a real command-line application.

← Foreword | Next → 1.1 Installation

Released under the Apache 2.0 License.