From f4a9b517b7bb76966de2763287c09bfe1959b3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Sol=C3=B3rzano?= Date: Mon, 8 May 2023 16:50:19 +0200 Subject: [PATCH] [MSHARED-1251] - Deprecate the JAR Index feature (JDK-8302819) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jorge Solórzano --- .../maven/archiver/MavenArchiveConfiguration.java | 8 ++++++++ src/site/xdoc/index.xml.vm | 11 ++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/archiver/MavenArchiveConfiguration.java b/src/main/java/org/apache/maven/archiver/MavenArchiveConfiguration.java index e373312..77bd7f8 100644 --- a/src/main/java/org/apache/maven/archiver/MavenArchiveConfiguration.java +++ b/src/main/java/org/apache/maven/archiver/MavenArchiveConfiguration.java @@ -35,6 +35,10 @@ public class MavenArchiveConfiguration { private boolean recompressAddedZips = true; + /** + * @deprecated See JDK-8305597 + */ + @Deprecated private boolean index; private boolean addMavenDescriptor = true; @@ -89,7 +93,9 @@ public void setRecompressAddedZips(boolean recompressAddedZips) { *

isIndex.

* * @return {@link #index} + * @deprecated See JDK-8305597 */ + @Deprecated public boolean isIndex() { return index; } @@ -138,7 +144,9 @@ public void setCompress(boolean compress) { *

Setter for the field index.

* * @param index set index to true/false. + * @deprecated See JDK-8305597 */ + @Deprecated public void setIndex(boolean index) { this.index = index; } diff --git a/src/site/xdoc/index.xml.vm b/src/site/xdoc/index.xml.vm index 5b9e89e..9bf995e 100644 --- a/src/site/xdoc/index.xml.vm +++ b/src/site/xdoc/index.xml.vm @@ -131,9 +131,14 @@ index - Whether the created archive will contain an - INDEX.LIST file. - The default value is false. + Deprecated: See JDK-8305597 +

+ Whether the created archive will contain an + INDEX.LIST file. +

+

+ The default value is false. +

boolean