Enables candid-kt into Gradle pipeline
// build.gradle.kts
buildscript {
repositories {
maven { setUrl("https://dl.bintray.com/hotkeytlt/maven") }
maven { setUrl("https://jitpack.io") }
}
}
plugins {
id("com.github.seniorjoinu.candid") version "0.1-rc24"
}
repositories {
maven { setUrl("https://dl.bintray.com/hotkeytlt/maven") }
maven { setUrl("https://jitpack.io") }
}
candid {
sourceSets {
main {
candid {
srcDir("path to the did files")
}
}
}
genPackage = "package of the generated kotlin file"
}
$ gradle generateCandid
$ gradle tasks
$ gradle help --task generateCandid