Although no Fluxtion gradle plugin is available to scan and generate event processors AOT, gradle’s open architecture
makes it easy to integrate a task to wrap a utility. To integrate Fluxtion.scanAndCompileFluxtionBuilders as a build
task into a gradle project the following steps are needed:
Add Fluxtion compile as a dependency to build.gradle
Create a main method that invokes Fluxtion.scanAndCompileFluxtionBuilders(classesDirectory)
Register the main method as a task in build.gradle
Run the task when you want to regenerate event processors AOT
The sample project demonstrates integrating gradle with the Fluxtion scan and compile utility for AOT generation.
Add dependencies
The build.gradle file declares the dependencies for the project.
Create main to wrap Fluxtion scan and compile
The GenerateFluxtion main method calls the scanAndCompileFluxtionBuilders utility.
Register build task
The build.gradle file register the GenerateFluxtion main as a task for the project.