Project Setup
Requirements¶
- Java 21 must be on the path or available via JAVA_HOME
- Basic familiarity with GraphQL (see GraphQL Foundation learning materials)
Compatibility¶
Viaduct is compatible with the following versions:
- Gradle: 8.10+ (Gradle 9.1.0+ supported with Kotlin 2.0+)
- Kotlin: Use a Kotlin version compatible with your Gradle version
- Gradle 8.x: Kotlin 1.9.x or 2.x
- Gradle 9.x: Kotlin 2.0+
- Java: 21+
Note: When setting up a new project, choose Gradle and Kotlin versions that are compatible with each other. Refer to the Gradle-Kotlin compatibility matrix for guidance.
Choose Your Approach¶
There are three ways to set up your first Viaduct application based on your preference:
Quick Start - Clone Approach¶
Clone one of our starter applications and start building immediately.
Best for: Getting familiar with Viaduct quickly, exploring examples
Scaffold Approach¶
Generate a complete Ktor + Viaduct project with a single Gradle command. The fastest way to get a production-ready project structure.
Best for: Starting new projects, getting a complete Ktor-based application
Build From Scratch¶
Build a Viaduct application from the ground up to understand how all the pieces fit together.
Best for: Understanding the complete structure, setting up custom projects
All approaches will result in a working application. After completing any setup path, continue to Touring the Application to understand the structure.