public final class ArtifactSnapshot
extends java.lang.Object
In order to guarantee absence of collisions, the plugin uses the same versions, repositories, artifacts, etc. as does the Spine core code.
| Modifier and Type | Class and Description |
|---|---|
static class |
ArtifactSnapshot.Builder
A builder for the
ArtifactsSnapshot instances. |
| Modifier and Type | Method and Description |
|---|---|
static ArtifactSnapshot |
fromResources()
Loads the snapshot from the
artifact-snapshot.properties resource of the plugin. |
com.google.common.collect.ImmutableList<java.lang.String> |
grpcDependencies()
Obtains the artifacts required to generate and compile gRPC stubs successfully.
|
static ArtifactSnapshot.Builder |
newBuilder() |
java.lang.String |
protobufJava()
Obtains the artifact spec for the core Protobuf Java library.
|
java.lang.String |
protoc()
Obtains the artifact spec for the Protobuf compiler.
|
java.lang.String |
spineBaseVersion()
Obtains the current version of Spine
base. |
java.lang.String |
spineGCloudVersion()
Obtains the current version of Spine GCloud.
|
io.spine.net.Url |
spineRepository()
Obtains the Maven repository which hosts Spine artifacts with release versions.
|
io.spine.net.Url |
spineSnapshotRepository()
Obtains the Maven repository which hosts Spine artifacts with
-SNAPSHOT versions. |
java.lang.String |
spineTimeVersion()
Obtains the current version of Spine
time. |
java.lang.String |
spineVersion()
Obtains the current version of Spine core.
|
java.lang.String |
spineWebVersion()
Obtains the current version of Spine
web API. |
public static ArtifactSnapshot fromResources()
artifact-snapshot.properties resource of the plugin.
The resource is generated on the plugin build time.
public java.lang.String spineVersion()
public java.lang.String spineBaseVersion()
base.public java.lang.String spineTimeVersion()
time.public java.lang.String spineWebVersion()
web API.public java.lang.String spineGCloudVersion()
public io.spine.net.Url spineRepository()
public io.spine.net.Url spineSnapshotRepository()
-SNAPSHOT versions.public java.lang.String protoc()
The value may be something similar to com.google.protobuf:protoc:3.9.0.
public java.lang.String protobufJava()
The value may be something similar to com.google.protobuf:protobuf-java:3.9.0.
public com.google.common.collect.ImmutableList<java.lang.String> grpcDependencies()
Note that gRPC may require some additional dependencies at runtime.
public static ArtifactSnapshot.Builder newBuilder()