Build Component
Initial Setup
Learn how to create a new component
To create a new component, we will use the example component as a template.
- Copy the example component from
server/libs/modules/components/exampleinto a new packageserver/libs/modules/components/newcomponent, wherenewcomponentis the name of your new component. - Update Settings:
- Open
bytechef/settings.gradle.kts. - Add the following line to include your new component in the build process:
include("server:libs:modules:components:newcomponent")
- Open
- Load Gradle Changes:
- Refresh or reload the Gradle project in IntelliJ IDEA.
- This step ensures that IntelliJ recognizes your new component as a Java module, allowing you to work with it seamlessly within the IDE.
- Rename Package and Classes:
- Inside the newly created package, rename the
examplesubpackage tonewcomponent. - Additionally, rename all classes within this package that start with
Exampleto start withNewComponent.
- Inside the newly created package, rename the
How is this guide?
Last updated on