Create Project
Experimental
Make sure you have setup the company project.
Creating a Project is done in two steps:
- Create the project directory and the Helper Script.
- Run the Helper Script to create the project structure.
Here we focus on the first step.
-
We can use the same
helperCompany.scalascript, we created in the Init Company step.cd ~/dev-mycompany ./helperCompany.scala project myProjectThis creates:
dev-mycompany | projects | | myProject | | | helper.scala | | | PROJECT.conf -
Make
helper.scalaexecutable:cd ~/projects/myProject chmod +x helper.scala -
Open the
mycompany-myProjectdirectory with your IDE (I use Intellij). -
Adjust the
PROJECT.confto your needs.
projectName: mycompany-myProject
projectVersion: 0.1.0-SNAPSHOT
subProjects: [
// subProject1
// subProject2
]
dependencies: [
// example-helper
// example-accounts
]
If you haven't released company-camundala yet,
you need to run it at least locally (sbt publishLocal)
and set the version in the helper.scala manually.
//> using dep mycompany::mycompany-camundala-helper:VERSION NOT FOUND
// replace with:
//> using dep mycompany::mycompany-camundala-helper:0.1.0-SNAPSHOT