Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-797

log4j-core should be listed as runtime dependency

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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.

      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'
      }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rpopma Remko Popma
            merzedes whaefelinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment