Open plinto
Docs›Concepts

Build systems

Concept·3 min read
In one sentence

A build system is the package that knows how to build one language. A project names it with build =, and pins it like any library.

One per languageJavaBuild, KotlinBuild, GoBuild, RustBuild, PythonBuild, NodeBuild, NodeWeb, ElixirBuild, CustomBuild
Declaredin build-dependencies, as JavaBuild = 1.0
Set upin configuration/<BuildSystem>.config

How a build runs

  1. plinto reads the workspace's revision, and takes the packages build-dependencies name: the build system and its toolchain.
  2. It loads the build system, and hands it the project, with its dependencies and test-dependencies taken from the group the same way.
  3. The build system compiles, tests and packages, in phases: prepare, compile, test, package, and release when it is a release.

A new version of a build system is just a new release in your group, so moving every project to it is a revision like any other.

One build for libraries and programs

The same build system builds a library and a program. A program only names its entry point, with main in plinto.conf: a class in Java, a file in Rust. Then plinto run starts it, and the Archive packager packs it to run on a server: a .tar.gz with the program, its libraries and its runtime, such as its own JDK. See Deployments.

Your own steps

Any build system runs your scripts before or after a phase: see Run a script during the build. For a language plinto has no build system for, CustomBuild runs your own scripts/build.sh.