-
To your buildSrc build.gradle, add:
compile "software.amazon:toolkits.telemetry.generator:1.0"
to the
dependencies
as well asmaven { url "https://jitpack.io" }
to the
repositories
section (this is needed for json schema validation) -
In the project build.gradle, add
task generateTelemetry(type: GenerateTelemetry) { inputFiles = [<array of IDE specific files>] outputDirectory = file(<output directory>) }
-
Finally, make the build depend on it:
compileJava.dependsOn(generateTelemetry)
To add additional telemetry files, add file("/path/to/file)
entries into the inputFiles array.