[ 
https://issues.apache.org/jira/browse/LOG4J2-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14144564#comment-14144564
 ] 

whaefelinger commented on LOG4J2-797:
-------------------------------------

Sorry for the late reply.

My suggestion is to elaborate on dependencies right below the main chapter 
titled "Maven, Ivy, and Gradle Artifacts". There I would state, that log4j2 got 
split in a core and api dependency with the basic idea to have a former as 
runtime dependency. However, due to technical reasons, e.g. fast 
startup/annotation processing, the core dependency should (and must) be listed 
as compile time and not as runtime dependency for now and until further notice.

Having suggested this, I'm fine with closing this case.



> log4j-core should be listed as runtime dependency
> -------------------------------------------------
>
>                 Key: LOG4J2-797
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-797
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 2.0.2
>         Environment: http://logging.apache.org/log4j/2.x/maven-artifacts.html
>            Reporter: whaefelinger
>            Priority: Minor
>
> The documentation (website: 
> http://logging.apache.org/log4j/2.x/maven-artifacts.html) lists "log4j-core" 
> as compile dependency (Gradle). 
> While this at not wrong, it does not hit the idea of api/core separation. 
> Thus I suggest to list "log4j-core" as runtime dependency, i.e.
> {code}
> dependencies {
>   compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: 
> '2.0.2'
>   runtime group: 'org.apache.logging.log4j', name: 'log4j-core', version: 
> '2.0.2'
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to