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-mycompanyBe aware that the company name (mycompany) must be lowercase to work properly.
-
Create
helperCompany.scalain 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.49 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-camundaladirectory with your IDE (I use Intellij). -
Import the sbt project. The project should compile without errors.
-
Update
build.sbtwith your repository settings. -
Release the
company-camundalaproject to your repository.