Comment on page
Build and deploy
Once the custom component is tested and validated its ready to be deployed within the Joule execution project
Note all gradle commands must be execute at the root of the project directory
- 1.Defined components in plugins.properties
- 2.Build, test and package
- 3.Deploy to project
Create a plugins.properties file with a similar definition for your custom class or classes under the
resources/META-INF/services
directory. If you are packaging more than one component add the definition on a new line.com.yourdomain.processors.transformers.CustomProcessor
A single project can have a number of custom components which can be packaged into a single or multiple jar files. The template project provides basic
grade.build
file. The project will execute these tests during the gradle build cycle and deploy to your local maven repository. plugins {
id "java"
id 'maven-publish'
}
jar.doFirst {
archiveBaseName = 'mydomain-customtransformer-processor'
manifest {
attributes "Class-Path" : configurations.compileClasspath.collect { it.getName() }.join(' ')
}
}
dependencies {
implementation "com.fractalworks.streams.platform:fractalworks-stream-platform:$platformVersion"
}
Execute the below command at the project root. This will build, test, package and publish the resulting artifacts to your local maven repository.
gradle build publishToMavenLocal
Once your package has been successfully created you are ready to deploy to a Joule project. The resulting jar artefacts' needs to be placed in to the
userlibs
directory in your Joule projects directory. See provided examples documentation for further directions.cp build/libs/<your-component>.jar <location>/userlibs
Last modified 7mo ago