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:
Tool | Version | Purpose | Download |
---|---|---|---|
JDK | 11+ | Java Development Kit | OpenJDK |
Gradle | 6.7+ | Build Automation | Gradle |
NodeJS | 6+ | JavaScript Runtime | NodeJS |
Docker | 3.0.0+ | Containerization | Docker Desktop |
AWS CLI | 2.1+ | AWS Command Line Interface | AWS CLI |
AWS SAM | 1.15+ | Serverless Application Model | SAM CLI Install Guide |
YTT | 0.40.1+ | YAML Templating | Carvel 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:
- Build output for any errors
- Test results in the build reports
- Generated artifacts in the build directory
Troubleshooting
Common build issues and solutions:
-
Java Version Mismatch
- Ensure JAVA_HOME points to JDK 11+
- Verify Java version with
java -version
-
Gradle Issues
- Clear Gradle cache if needed:
./gradlew --stop
- Run with debug:
./gradlew build --debug
- Clear Gradle cache if needed:
-
Environment Setup
- Verify all required tools are in your PATH
- Check tool versions match requirements