# Projects

> A project is a folder with a plinto.conf, which says its name, its version line, how it is built and what it needs.

**A project is a folder with a `plinto.conf`: its name, its version line, how it is built and what it needs.**

It's like: a `pom.xml`, `go.mod`, `Cargo.toml` or `package.json`, the same for every language
It lives in: a workspace's `src/`, as `src/HelloApp`
It becomes: a package, once a build releases it

## What it says {#what-it-says}

```conf file=src/MyService/plinto.conf
{
  name = MyService
  version = 1.0          # the version line: plinto numbers each release in it
  build = JavaBuild      # the build system
  main = shop.Main       # what `plinto run` starts: a program

  build-dependencies: {  # what builds it: the build system and its toolchain
    JavaBuild = 1.0
    Java = 25
  }
  dependencies: {        # what it uses
    MyLib = 1.0
    Guava = 33.7.2-jre
  }
  test-dependencies: {   # what its tests use, on top
    JUnitJupiter = 6
  }
}
```

That's all a project declares. There are no tasks to wire up and no plugins to configure in code: the build system knows how to build the language, and the versions come from the version group.

## Three kinds of dependencies {#dependencies}

| Block | What goes in it |
|---|---|
| `build-dependencies` | the build system, the toolchain (`Java`, `Go`, `Rust`, `Node`…) and anything else the build runs |
| `dependencies` | the libraries the code uses, yours and imported ones |
| `test-dependencies` | what only the tests use, such as `JUnitJupiter` or `Pytest` |

Each entry is `Name = version`, and the version must be one the group has: see [Version rules](../reference/version-rules.md). An entry can carry more, as `Serde: { version = 1.0.229, features = [derive] }`.

## A library or a program {#library-or-program}

A project that names its `main` is a program: `plinto run` starts it, with the `args` it names, and it can be deployed. Without one it is a library, which other projects use. `main` is in each language's own words: a class in Java and Kotlin, the `package main`'s folder in Go, a file in Rust. See [A program: main and args](../reference/plinto-conf.md#program).

## Its own settings {#settings}

What a build system needs to know beyond that goes in `configuration/<BuildSystem>.config`, such as `java.release = 21` in `configuration/JavaBuild.config`. The same folder holds your app's own settings, per region, environment and stage. See [Configuration files](../reference/configuration.md).

## Start one {#create}

```sh
$ plinto create java-service HelloApp
```

writes a project that builds at once into the workspace's `src/`, with versions the group has. The templates are `java-lib`, `java-service`, `kotlin-lib`, `kotlin-service`, `go-lib`, `go-service`, `rust-lib`, `rust-service`, `python-lib`, `python-service`, `node-lib`, `node-service`, `node-web`, `elixir-lib`, `elixir-service` and `custom-build`.

- [Workspaces](workspaces.md): where projects live
- [plinto.conf](../reference/plinto-conf.md): every key
- [Build systems](build-systems.md): what `build =` names
