Initial Setup
To create new component, we will use example
component as template.
-
Copy the example component from
server/libs/modules/components/example
into a new packageserver/libs/modules/components/newcomponent
, wherenewcomponent
is 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:
- Open
-
Modify Build Files:
- Open
bytechef/server/ee/apps/worker-app/build.gradle.kts
andbytechef/server/apps/server-app/build.gradle.kts
. - Add the following line to both files to ensure your component is included as a dependency:
- 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
example
subpackage tonewcomponent
. - Additionally, rename all classes within this package that start with
Example
to start withNewComponent
.
- Inside the newly created package, rename the