This plugin enables you to use Deno as part of your Gradle build:
plugins {
id("io.github.rognan.deno") version "0.1.0"
}
deno {
// deno is downloaded from https://github.com/denoland/deno/releases
// and placed in ${rootProject}/.gradle/deno/v${denoVersion}-${arch}-${os}
version.set("1.43.4")
}
// arguments are forwarded directly to deno
tasks.register<task.io.github.rognan.deno.ExecTask>("helloWorld") {
args.set(listOf("eval", "console.log('Hello, World!');"))
}