SpineEventEngine / mc-java

Model Compiler for Java
Apache License 2.0
0 stars 2 forks source link

Spine Model Compiler for Java

Ubuntu build codecov.io   license

This repository hosts the Java-specific parts of the Spine Model Compiler.

Usage

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.

Model Compilers for other languages:

See the common parts of Model Compiler at SpineEventEngine/model-compiler.

Environment

The modules in this repository are built with Java 11.

Performance testing

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.