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.
|
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 |
spineVersion()
Obtains the current version of Spine.
|
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 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()