public final class BootstrapPlugin
extends io.spine.tools.gradle.SpinePlugin
This plugin configures the project in order to make it possible to develop Spine-based
applications. Many configurations are implicit. For a more fine-grain configuration, use
spine-model-compiler plugin, spine-proto-js-plugin,
java/java-library plugin, and com.google.protobuf plugin directly.
A typical usage of the bootstrap plugin is as follows:
// -- build.gradle --
plugins {
id 'io.spine.tools.gradle.bootstrap'
}
spine {
enableJava {
grpc = true
}
enableJavaScript()
}
The example above configures the project to generate both Java and JS code from Protobuf.
Also, gRPC stubs and implementation bases are generated for the Protobuf services in Java.
Also, java, com.google.protobuf, io.spine.tools.spine-model.compiler,
and io.spine.tools.spine-proto-js-plugin Gradle plugins are added to the project
automatically.
| Constructor and Description |
|---|
BootstrapPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.gradle.api.Project project) |
logMissingDescriptorSetFile, newTask, resolve