Init Company
Experimental
Create the directory structure and common files to get you started with Camundala.
The Structure of the Process-Projects looks like this:
myProject1 myProject2 ...
| | |
company-camundala
|
camundala
The idea is that you have a company layer, where you can override Company specific settings.
Be aware that one of the main advantages is the concept of Convention over Configuration.
At the moment not everything is configurable.
So try to stick to the conventions, whenever possible.
-
Create a directory for your company development:
mkdir ~/dev-mycompany
Be aware that the company name (mycompany) must be lowercase to work properly.
-
Create
helperCompany.scala
in your company directory and open it.cd ~/dev-mycompany touch helperCompany.scala open helperCompany.scala
-
Copy the following content to
helperCompany.scala
:#!/usr/bin/env -S scala shebang // DO NOT ADJUST. This file is replaced by `./helper.scala update`. //> using toolkit 0.5.0 //> using dep io.github.pme123::camundala-helper:1.30.28 import camundala.helper.dev.DevCompanyHelper @main def run(command: String, arguments: String*): Unit = DevCompanyHelper.run(command, arguments*)
-
Make the file executable:
chmod +x helperCompany.scala
-
Create the company directory structure:
./helperCompany.scala init
-
Open the
company-camundala
directory with your IDE (I use Intellij). -
Import the sbt project. The project should compile without errors.
-
Update
build.sbt
with your repository settings. -
Release the
company-camundala
project to your repository.