gradle maven-publish plugin not picking up test dependencies

Question

i have a gradle project with compile and test dependencies, and a maven-publish config:

dependencies {
  compile 'A'
  testCompile 'B'
}
...
publishing {
  publications {
    standardjava(MavenPublication) {
      from components.java
    }
  }
}

i then use ./gradlew generatePomFileForStandardjavaPublication to generate a pom file.

the pom generated only contains A as a (compile-scoped) dependency, no test-scoped dep. on B at all.

how do i include test dependencies?


Show source
| gradle   | maven-publish   2017-10-04 23:10 0 Answers

Answers to gradle maven-publish plugin not picking up test dependencies ( 0 )

Leave a reply to - gradle maven-publish plugin not picking up test dependencies

◀ Go back