Skip to content

Commit a87f311

Browse files
committed
Refactor dependencies required by compression
1 parent f3f45ec commit a87f311

File tree

2 files changed

+46
-23
lines changed

2 files changed

+46
-23
lines changed

src/site/antora/modules/ROOT/pages/manual/appenders/rolling-file.adoc

+4-23
Original file line numberDiff line numberDiff line change
@@ -971,30 +971,11 @@ If the <<RolloverStrategy-attr-tempCompressedFilePattern,`tempCompressedFilePatt
971971
^dep^::
972972
Additional dependencies are required to use these compression algorithms:
973973
+
974-
[tabs]
975-
====
976-
Maven::
977-
+
978-
[source,xml,subs=+attributes]
979-
----
980-
<dependency>
981-
<groupId>org.apache.commons</groupId>
982-
<artifactId>commons-compress</artifactId>
983-
<version>{commons-compress-version}</version>
984-
<scope>runtime</scope>
985-
</dependency>
986-
----
987-
988-
Gradle::
989-
+
990-
[source,groovy,subs=+attributes]
991-
----
992-
runtimeOnly 'org.apache.commons:commons-compress:{commons-compress-version}'
993-
----
994-
995-
====
974+
--
975+
include::partial$features/compression.adoc[]
976+
--
996977
+
997-
The `.xz` and `.zst` extensions require **additional** Commons Compress dependencies.
978+
The `.xz` and `.zst` extensions require **additional** dependencies.
998979
See
999980
https://commons.apache.org/proper/commons-compress/index.html[Commons Compress documentation]
1000981
for more details.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
////
2+
Licensed to the Apache Software Foundation (ASF) under one or more
3+
contributor license agreements. See the NOTICE file distributed with
4+
this work for additional information regarding copyright ownership.
5+
The ASF licenses this file to You under the Apache License, Version 2.0
6+
(the "License"); you may not use this file except in compliance with
7+
the License. You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
////
17+
18+
// This file exists in both the 2.x and 3.x branches.
19+
// It contains the dependencies required to enable advanced compression algorithms.
20+
21+
[tabs]
22+
====
23+
Maven::
24+
+
25+
[source,xml,subs=+attributes]
26+
----
27+
<dependency>
28+
<groupId>org.apache.commons</groupId>
29+
<artifactId>commons-compress</artifactId>
30+
<version>{commons-compress-version}</version>
31+
<scope>runtime</scope>
32+
</dependency>
33+
----
34+
35+
Gradle::
36+
+
37+
[source,groovy,subs=+attributes]
38+
----
39+
runtimeOnly 'org.apache.commons:commons-compress:{commons-compress-version}'
40+
----
41+
42+
====

0 commit comments

Comments
 (0)