Dependency version 99.0-does-not-exist generated using pom.writeTo


(Jeremy Whiting) #1

Hi,

My project is to add a project to Hibernate. It will provide a Maven plugin for end users to configure a plugin that does bytecode enhancement.

I am using Gradle’s Maven Plugin to generate a pom.xml for the project. In the .gradle file is a code block to configure the MavenPom[1]. My problem is one transitive dependency has a version that is wrong

<dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging-api</artifactId>
      <version>99.0-does-not-exist</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>xml-apis</artifactId>
          <groupId>xml-apis</groupId>
        </exclusion>
      </exclusions>
    </dependency>

What’s going on here with the testRuntime dependency configuration ?

Build file and dependencies report here [2]

Set-up here [3]

Regards, Jeremy

[1] http://www.gradle.org/docs/current/javadoc/org/gradle/api/artifacts/maven/MavenPom.html [2] http://pastebin.com/HYnaPTCa [3] http://pastebin.com/VhJPJ9nF


(Jeremy Whiting) #2

Ideally I don’t include the testRuntime dependency configuration or the testCompile.

What is your advice for excluding these in the generated pom ?