The goal of this project is to allow build-time transcoding of SVG content into Java / Kotlin classes.
radiance-ignite
for build instructions of the latest stable release.
Add Ignite to the buildscript
part of your Gradle build file and apply the plugin:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.pushing-pixels:radiance-ignite:X.Y.Z'
}
}
apply plugin: 'org.pushing-pixels.ignite'
For a Java project, generate Java classes with Ignite (add multiple ignite
lambdas if you have more than one SVG content folder):
compileJava.doFirst {
ignite {
inputDirectory = file('src/main/resources')
outputDirectory = file('src/main/java/org/radiance/demo/svg')
outputLanguage = 'java'
outputPackageName = 'org.radiance.demo.svg'
useResizableTemplate = true
transcode()
}
}
For a Kotlin project, generate Kotlin classes with Ignite (add multiple ignite
lambdas if you have more than one SVG content folder):
compileKotlin.doFirst {
ignite {
inputDirectory = file('src/main/resources')
outputDirectory = file('src/main/java/org/radiance/demo/svg')
outputLanguage = 'kotlin'
outputPackageName = 'org.radiance.demo.svg'
useResizableTemplate = true
transcode()
}
}