You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Cédric Champeau (Jira)" <ji...@apache.org> on 2021/12/20 19:21:00 UTC
[jira] [Updated] (LOG4J2-3263) Incorrect documentation about Gradle
[ https://issues.apache.org/jira/browse/LOG4J2-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cédric Champeau updated LOG4J2-3263:
------------------------------------
Description:
The docs mention the use of the `compile` configuration, which has been deprecated for several years now, and has been removed in Gradle 7. Instead the samples should use `implementation`:
{code:java}
dependencies {
implementation "org.apache.logging.log4j:log4j-api:2.17.0"
implementation "org.apache.logging.log4j:log4j-core:2.17.0"
}
{code}
The documentation for using the BOM states:
"To use this with Gradle, an additional [Gradle plugin|https://github.com/spring-gradle-plugins/dependency-management-plugin] is required for dependency management functionality."
which is incorrect since Gradle 5, where you can simply write:
{code:java}
dependencies {
implementation platform("org.apache.logging.log4j:log4j-bom")
implementation "org.apache.logging.log4j:log4j-api"
implementation "org.apache.logging.log4j:log4j-core"
}
{code}
was:
The docs mention the use of the `compile` configuration, which has been deprecated for several years now, and has been removed in Gradle 7. Instead the samples should use `implementation`:
dependencies {
implementation "org.apache.logging.log4j:log4j-api:2.17.0"
implementation "org.apache.logging.log4j:log4j-core:2.17.0"
}
The documentation for using the BOM states:
"To use this with Gradle, an additional [Gradle plugin|https://github.com/spring-gradle-plugins/dependency-management-plugin] is required for dependency management functionality."
which is incorrect since Gradle 5, where you can simply write:
dependencies {
implementation platform("org.apache.logging.log4j:log4j-bom")
implementation "org.apache.logging.log4j:log4j-api"
implementation "org.apache.logging.log4j:log4j-core"
}
> Incorrect documentation about Gradle
> ------------------------------------
>
> Key: LOG4J2-3263
> URL: https://issues.apache.org/jira/browse/LOG4J2-3263
> Project: Log4j 2
> Issue Type: Documentation
> Reporter: Cédric Champeau
> Priority: Major
>
> The docs mention the use of the `compile` configuration, which has been deprecated for several years now, and has been removed in Gradle 7. Instead the samples should use `implementation`:
>
> {code:java}
> dependencies {
> implementation "org.apache.logging.log4j:log4j-api:2.17.0"
> implementation "org.apache.logging.log4j:log4j-core:2.17.0"
> }
> {code}
>
>
> The documentation for using the BOM states:
>
> "To use this with Gradle, an additional [Gradle plugin|https://github.com/spring-gradle-plugins/dependency-management-plugin] is required for dependency management functionality."
>
> which is incorrect since Gradle 5, where you can simply write:
>
> {code:java}
> dependencies {
> implementation platform("org.apache.logging.log4j:log4j-bom")
> implementation "org.apache.logging.log4j:log4j-api"
> implementation "org.apache.logging.log4j:log4j-core"
> }
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)