elharo commented on code in PR #11584:
URL: https://github.com/apache/maven/pull/11584#discussion_r2687649061


##########
compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java:
##########
@@ -37,9 +37,21 @@
  */
 public interface Artifact extends Comparable<Artifact> {
 
+    /**
+     * @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.

Review Comment:
   never use a version range foe the same reasons. Explicit versions only



##########
compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java:
##########
@@ -37,9 +37,21 @@
  */
 public interface Artifact extends Comparable<Artifact> {
 
+    /**
+     * @deprecated since 4.0.0.

Review Comment:
   do we need since 4.0.0.?



##########
compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java:
##########
@@ -37,9 +37,21 @@
  */
 public interface Artifact extends Comparable<Artifact> {
 
+    /**
+     * @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.

Review Comment:
   ditto



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to