diff --git a/compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java b/compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java index bbbdc14d8278..c21c43114942 100644 --- a/compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java +++ b/compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java @@ -37,9 +37,21 @@ */ public interface Artifact extends Comparable { + /** + * @deprecated since 4.0.0. + * The use of the {@code RELEASE} version is discouraged because it results + * in non-reproducible builds. + * Use an explicit version or a version range instead. + */ @Deprecated(since = "4.0.0") String RELEASE_VERSION = "RELEASE"; + /** + * @deprecated since 4.0.0. + * The use of the {@code LATEST} version is discouraged because it results + * in non-reproducible builds. + * Use an explicit version or a version range instead. + */ @Deprecated(since = "4.0.0") String LATEST_VERSION = "LATEST";