You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2021/12/24 16:12:00 UTC
[jira] [Commented] (LOG4J2-3263) Incorrect documentation about Gradle
[ https://issues.apache.org/jira/browse/LOG4J2-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17465048#comment-17465048 ]
Volkan Yazici commented on LOG4J2-3263:
---------------------------------------
[~melix], thanks so much for the heads up! Mind submitting a PR against the {{release-2.x}} branch, please?
> 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)