Skip to main content

Gradle Tasks

Kanvas adds lifecycle and diagnostic tasks to the project.

TaskPurpose
kanvasDoctorCheck host, JDK, toolchain, backend, target tasks, runtime artifacts, and integration
kanvasCompatibilityReport detected Compose/Skiko runtime information
kanvasRuntimeBuild or provision the Kanvas runtime
kanvasRefreshRuntimeRefresh and rebuild the runtime
kanvasBuildRun the configured application build task
kanvasRunLaunch the application with Kanvas integration
kanvasPackageBuild the configured distributable/package task
./gradlew kanvasDoctor
./gradlew kanvasCompatibility

Then:

./gradlew kanvasRun

Doctor vs compatibility​

kanvasDoctor is the blocking environment/integration check.

kanvasCompatibility reports what Compose and Skiko runtime Kanvas sees. It is not a blanket renderer certification.