This is a part of Spine release in version 1.9.0.
Several significant changes have been made in this release to base modules.
-
Environment-related types were moved under
io.spine.environmentpackage; -
Production was renamed to
DefaultMode; -
It is now possible to check whether the environment is enabled; see
EnvironmentType.enabled(); -
It is also possible to configure a callback executed upon the environment type detection; see
EnvironmentType.onDetected(...); -
The API for the custom environment types was changed; see
io.spine.environment.CustomEnvironmentTypeand its documentation for more detail. -
In the
Preconditions2helper class the following methods are now annotated with@CanIgnoreReturnValue:checkNotEmptyOrBlank(String str, @Nullable Object errorMessage)checkNotEmptyOrBlank(String str, @Nullable String errorMessageTemplate, @Nullable Object @Nullable ... errorMessageArgs)checkPositive(long value)checkPositive(long value, @Nullable String errorMessageTemplate, @Nullable Object @Nullable ... errorMessageArgs)
-
Previously used
jCenter()references were replaced withmavenCentral(), as JCenter no longer provides a public Maven repository.
See the following PRs for more detail: