Caplin Project Templates
The Caplin Project Templates repository is a collection of template Gradle projects to get you started quickly in Caplin Platform development. Each template project includes an example application for you to extend and customise. The build process is managed by Gradle, and each project includes tasks to build, run, and package your project as a Caplin Platform Blade.
The template projects require Caplin’s Java integration libraries. You can configure Gradle to download these libraries automatically from the Caplin Software Repository, or you can configure Gradle to reference local copies of the libraries if your development environment does not have an Internet connection.
Requirements
The template projects require the following build environment:
-
Oracle Java 8 (<= 8u202), Red Hat OpenJDK 8, or Red Hat OpenJDK 11
-
Caplin Java integration libraries, available for download from the Caplin Downloads site and the Caplin Software Repository
-
[optional] Gradle-aware IDE (for example, Eclipse IDE for Java EE Developers + Eclipse Buildship plugin)
Accessing the templates
The templates are freely available from the Caplin Project Templates repository on GitHub.
The repository contains the following templates:
Using the templates
Each template includes its own comprehensive instructions.
The instructions and options differ between templates, but in general the process for using a template is as follows:
-
Download or clone the latest version of Caplin Project Templates from GitHub.
-
Choose a template to base your project on and copy its directory to your
src
directory -
Customise the template’s Gradle
gradle.settings
andbuild.gradle
files. -
[optional] Import the project into you company’s version control system
-
[optional] Import the project into a Gradle-aware IDE
-
Write your integration code, then run the Gradle
assemble
task to build and package your project as a Caplin Platform Blade.
For a walkthrough of developing a Java adapter with a project template and a local Caplin Platform stack running in Docker, see Java development with Docker on macOS and Windows.
See also: