Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1715

gradleApi() pollutes compile time with runtime dependencies

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.0-milestone-4
    • Fix Version/s: 2.14-rc-1

      Description

      When using gradleApi() as a compile time dependency, all of Gradle's runtime dependencies are also included. This causes problems for example in the case of trying to compile against log4j (when using a custom appender as part of the project), since gradle includes log4j-over-slf4j.jar which provides a small subset of the log4j API that shadows the log4j jar.

      Ideally, compiling against gradleApi() should only add the gradle specific jars to the compile time class path, not all of its transitive dependencies.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            hani Hani Suleiman
            Votes:
            24 Vote for this issue
            Watchers:
            26 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: