This repository hosts the Java-specific parts of the Spine Model Compiler.
To use the Java part of the Model Compiler in Gradle,
declare the dependency in buildscript
block:
buildscript {
//...
val mcJavaVersion = ...
dependencies {
classpath("io.spine.tools:spine-mc-java-plugins:${mcJavaVersion}:all")
}
// ...
}
//...
apply plugin: "io.spine.mc-java"
Then, configure the plugin in scope of the particular Gradle project:
modelCompiler {
java {
// Specify the options here.
}
}
See mc-java-protoc documentation for more detail.
See the common parts of Model Compiler at SpineEventEngine/model-compiler.
The modules in this repository are built with Java 11.
This repo includes the BuildSpeed
submodule with the performance tests for the Spine tools.
The tests are executed in a GH Action. To run the tests locally, launch the checkPerformance
Gradle task. The task execution time will be printed to the console and
the journal file will be updated.