Clone the repository and change into the root directory of the repository.
Capella addons are developed on separate branches. To contribute, please follow these steps:
- When you want to add a new addon, create a new branch from the
mainbranch and name it according to the Capella addon (name as defined in the next step) you plan to contribute. Create the a new addon project using the project template which has according instructions or work on a given addon project. - When you want to work on an existing addon, just checkout the branch of the addon you want to work on.
Python and a JDK version that fits the desired Capella target platform must be installed.
An Eclipse JDT Language Server (JDTLS) must be installed. You can just download https://download.eclipse.org/jdtls/milestones/1.40.0/jdt-language-server-1.40.0-202409261450.tar.gz and extract it to a directory of your choice.
A Capella installation must be available.
The CLI of the present project must be installed, since it is used to manage development tasks. Change into the repository root directory and run:
pip install .
This makes a CLI program named capella-addons available in your shell.
Run the command capella-addons --help for more information.
-
Change into the directory of the Eclipse/ Capella addon project (sub folder of the repository).
-
Run the
capella-addons build-classpathcommand to generate the.classpathfile, example:capella-addons build-classpath \ --java-execution-environment=JavaSE-17 \ src/com/db/capella/api/impl/ProjectsApiServiceImpl.java \ /opt/capella_6.0.0
-
Run the
capella-addons build-workspacecommand to build the workspace of the Eclipse/ Capella addon project, example:capella-addons build-workspace \ --java-execution-environment=JavaSE-17 \ /usr/lib/jvm/jdk-17.0.6+10 \ /path/to/jdtls
-
Run the
capella-addons packagecommand to package the Eclipse/ Capella the Eclipse/ Capella addon project, example:capella-addons package /usr/lib/jvm/jdk /opt/capella_6.0.0
This creates a
.jarfile (Capella dropin) in thecapella-addons/ADDON_NAME/target/directory of the project.
-
Open a pull request to merge the changes on the
ADDON_NAMEbranch into themainbranch. -
After the pull request has been merged, create a new release on GitHub. To create a release just add a new tag
ADDON_NAME/vX.Y.Z.