Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.64 KB

ignite.md

File metadata and controls

52 lines (42 loc) · 1.64 KB

Ignite - Gradle plugin for transcoding SVG content

The goal of this project is to allow build-time transcoding of SVG content into Java / Kotlin classes.

Maven Central radiance-ignite for build instructions of the latest stable release.

Using Ignite in your Gradle script

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()
    }
}