diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-16 13:42:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-16 13:42:19 +0300 |
commit | 84d1bd786125c1c14a3ba5f63e38a4cc736a9027 (patch) | |
tree | f550fa965f507077e20dbb6d61a8269a99ef7107 /doc/user/packages/workflows/build_packages.md | |
parent | 3a105e36e689f7b75482236712f1a47fd5a76814 (diff) |
Add latest changes from gitlab-org/gitlab@16-8-stable-eev16.8.0-rc42
Diffstat (limited to 'doc/user/packages/workflows/build_packages.md')
-rw-r--r-- | doc/user/packages/workflows/build_packages.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/user/packages/workflows/build_packages.md b/doc/user/packages/workflows/build_packages.md index 59508b3e9e2..9d8db546566 100644 --- a/doc/user/packages/workflows/build_packages.md +++ b/doc/user/packages/workflows/build_packages.md @@ -276,6 +276,51 @@ OS: Windows 10 10.0 amd64 1. Enter a project name or press <kbd>Enter</kbd> to use the directory name as project name. +## sbt + +### Install sbt + +Install sbt to create new sbt projects. + +To install sbt for your development environment: + +1. Follow the instructions at [scala-sbt.org](https://www.scala-sbt.org/1.x/docs/Setup.html). + +1. From your terminal, verify you can use sbt: + + ```shell + sbt --version + ``` + +The output is similar to: + +```plaintext +[warn] Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r) +sbt script version: 1.9.8 +``` + +### Create a Scala project + +1. Open your terminal and create a directory to store the project. +1. From the new directory, initialize a new project: + + ```shell + sbt new scala/scala-seed.g8 + ``` + + The output is: + + ```plaintext + Minimum Scala build. + + name [My Something Project]: hello + + Template applied in ./hello + ``` + +1. Enter a project name or press <kbd>Enter</kbd> to use the directory name as project name. +1. Open the `build.sbt` file and edit it as described in the [sbt documentation](https://www.scala-sbt.org/1.x/docs/Publishing.html) to publish your project to the package registry. + ## npm ### Install npm |