Skip to main content

Building from Source

FormKiQ-Core is built using Java and JavaScript. This guide walks you through setting up your development environment and building the project from source.

Development Prerequisites

The following tools are required to build FormKiQ-Core:

ToolVersionPurposeDownload
JDK11+Java Development KitOpenJDK
Gradle6.7+Build AutomationGradle
NodeJS6+JavaScript RuntimeNodeJS
Docker3.0.0+ContainerizationDocker Desktop
AWS CLI2.1+AWS Command Line InterfaceAWS CLI
AWS SAM1.15+Serverless Application ModelSAM CLI Install Guide
YTT0.40.1+YAML TemplatingCarvel YTT

Build Process

FormKiQ-Core uses Gradle as its primary build tool.

Basic Build

To compile the project:

./gradlew clean build

Automated Build Example

You can find an example GitHub Actions workflow that builds FormKiQ in our repository: FormKiQ Build Workflow

note

The GitHub Actions workflow provides a complete example of our CI/CD process, including build steps, testing, and deployment configurations.

Build Verification

After building, verify your build by checking:

  1. Build output for any errors
  2. Test results in the build reports
  3. Generated artifacts in the build directory

Troubleshooting

Common build issues and solutions:

  1. Java Version Mismatch

    • Ensure JAVA_HOME points to JDK 11+
    • Verify Java version with java -version
  2. Gradle Issues

    • Clear Gradle cache if needed: ./gradlew --stop
    • Run with debug: ./gradlew build --debug
  3. Environment Setup

    • Verify all required tools are in your PATH
    • Check tool versions match requirements