In this article, you will learn how to get started in setting up a development environment for Openflexo infrastructure, using Intellij IDEA.
Gradle is now used as production tool for the whole Openflexo infrastructure.
As a preliminary phase, you should:
Click on File > New then choose Project from version control (VCS)
Fill the URI of the openflexo-dev repository which is: https://github.com/openflexo-team/openflexo-dev or ssh://git@github.com/openflexo-team/openflexo-dev.git and then click on Clone
Once the project is cloned on your local machine, open “settings.gradle” file then comment all the “includeBuild” lines then save it.
Open the build tab at the bottom of your Intellij, then click on the Reload Gradle Project icon on the left.
To import Connie project, we need to clone this repository: https://github.com/openflexo-team/connie
A small window will pop, choose “Gradle project” then click OK
Another pop-up will ask you if you want to open the Connie project in your current Intellij window, or you can just choose “new window”.
Now after you Connie project, you need to make sure you are using a compatible version with openflexo-dev.
From “Git” menu choose Branches..
Then choose the correct version (we are using 1.5.0.1 in this guide) then choose checkout
Once we perform a git checkout, Intellij should build our Connie project automatically.
Go to openflexo-dev “settings.gradle” file and uncomment “includeBuild ‘../connie’”
Go back to openflexo-dev project and perform a Reload Gradle project like we did earlier.
In the same way you can import any other openflexo projects from the openflexo git repository. Project URIs are:
Note that the projects to import only depend on your needs. It is really rare that you need to modify all components of Openflexo infrastructure. You may develop on only one project. In this case, all other projects will be imported as jars from Openflexo artifactory.
Please also note that you always need to import OpenflexoBuildPlugin to be able to build any Openflexo component.
Branches to use should be consistent such as:
Components (development versions) | Branch 1.9.1 | Branch 2.0.0 | Branch 2.1.0 |
---|---|---|---|
OpenflexoBuildPlugin | 1.9.1 | 2.0.0 | 2.1.0 |
OpenflexoProduction | 0.5 | 0.5 | 0.5 |
Connie | 1.4.2 | 1.5 | 1.5.1 |
Pamela | 1.4.2 | 1.5 | 1.6 |
Gina | 2.1.2 | 2.2 | 2.2.1 |
Diana | 1.4.2 | 1.5 | 1.5.1 |
OpenflexoUtils | 1.4.2 | 1.5 | 1.5.1 |
OpenflexoCore | 1.9.1 | 2.0.0 | 2.1.0 |
TechnologyAdapters | 1.9.1 | 2.0.0 | 2.1.0 |
OpenflexoDiagram | N/A | 2.0.0 | 2.1.0 |
OpenflexoOWL | N/A | 2.0.0 | 2.1.0 |
OpenflexoEMF | N/A | 2.0.0 | 2.1.0 |
OpenflexoHTTP | 1.9.1 | 2.0.0 | 2.1.0 |
OpenflexoJDBC | 1.9.1 | 2.0.0 | 2.1.0 |
OpenflexoKafka | 1.9.1 | 2.0.0 | 2.1.0 |
OpenflexoOBP2 | N/A | 2.0.0 | 2.1.0 |
OpenflexoRhapsody | N/A | 2.0.0 | 2.1.0 |
OpenflexoModules | 1.9.1 | 2.0.0 | 2.1.0 |
OpenflexoPackaging | 1.9.1 | 2.0.0 | 2.1.0 |
Modelers (optional) | 1.9.1 | 2.0.0 | 2.1.0 |
IntegrationTests (opt) | 1.9.1 | 2.0.0 | 2.1.0 |
Here are the former versions of infrastructure:
Components (stable versions) | Branch 1.8.1 | Branch 1.9.0 |
---|---|---|
OpenflexoProduction | 0.5 | 0.5 |
Connie | 1.4 | 1.4.1 |
Pamela | 1.4 | 1.4.1 |
Gina | 2.1 | 2.1.1 |
Diana | 1.4 | 1.4.1 |
OpenflexoUtils | 1.4 | 1.4.1 |
OpenflexoCore | 1.8.1 | 1.9.0 |
TechnologyAdapters | 1.8.1 | 1.9.0 |
OpenflexoModules | 1.8.1 | 1.9.0 |
OpenflexoPackaging | 1.8.1 | 1.9.0 |
Modelers (optional) | 1.8.1 | 1.9.0 |
To run on Intellij IDEA an Openflexo packaging from openflexo-packaging project, click on “Add Configuration..” then click on the plus sign then choose “Application”
Give the configuration a name like: “maintainer” and set the JRE to “Java 8”, set the module to one of the existing packaging(openflexo-packaging.packages.flexomaintainer.main openflexo-packaging.packages.flexosemantics.main, openflexo-packaging.packages.main.flexosemanticsplus.main…) and for the main class put “org.openflexo.Flexo” and put “dev” as a Program arguments.
Set “dev” as a program arguments.