Gradle Plugin
Plugin ID: io.github.graphdsl.graphdsl-plugin
Applying the plugin
Tasks
generateDsl
Reads all .graphqls files from schemaDir and generates the Kotlin DSL sources into build/generated/graphdsl/.
This task runs automatically before compileKotlin, so a normal build will always keep generated sources up to date.
Extension reference
graphDsl {
// Package for generated classes
packageName.set("com.example.api.dsl")
// Directory containing .graphqls files
schemaDir.set("src/main/graphql")
}
See Configuration for full option details.