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

Publishing with the legacy Ivy support doesn't add excludes to generated metadata

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1-rc-1
    • Known Issue Of:
      2.5

      Description

      Issue was raised on the Gradle forum in this post.

      Executing gradle uploadArchives for the given the following build script does not produce the correct metadata:

      apply plugin: 'java'
      
      repositories {
          mavenCentral()
      }
      
      dependencies {
          compile ("org.drools:drools-core:6.3.0.Final"){
              exclude group : 'org.mvel'
          }
          compile ("org.springframework:spring-core:4.2.5.RELEASE"){
              exclude group : 'commons-logging'
          }
      }
      
      uploadArchives {
          repositories {
              ivy {
                  url "file://${buildDir}/repo"
              }
          }
      }
      

      The generated metadata with Gradle 2.5 looks as such:

      <dependencies>
          <dependency org="org.drools" name="drools-core" rev="6.3.0.Final" conf="compile-&gt;default"/>
          <dependency org="org.springframework" name="spring-core" rev="4.2.5.RELEASE" conf="compile-&gt;default"/>
      </dependencies>
      

      With previous versions of Gradle the generated metadata included the exclude statements:

      <dependencies>
          <dependency org="org.drools" name="drools-core" rev="6.3.0.Final" conf="compile-&gt;default">
            <exclude org="org.mvel" module="*" name="*" type="*" ext="*" conf="compile" matcher="exact"/>
          </dependency>
          <dependency org="org.springframework" name="spring-core" rev="4.2.5.RELEASE" conf="compile-&gt;default">
            <exclude org="commons-logging" module="*" name="*" type="*" ext="*" conf="compile" matcher="exact"/>
          </dependency>
      </dependencies>
      

        Attachments

          Activity

            People

            Assignee:
            bmuschko Benjamin Muschko
            Reporter:
            bmuschko Benjamin Muschko
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: