Previously failing test:
Project A:
==========
apply plugin: 'java'
apply plugin: 'maven'
version = "1.0"
group='deptest.A'
repositories {
mavenCentral()
}
dependencies {
compile "junit:junit:4.10"
}
task testJar(type:Jar) {
from sourceSets.test.output
classifier = 'test'
}
artifacts {
testRuntime testJar
archives testJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri("build/repo"))
}
}
}
Project B:
==========
apply plugin: 'java'
apply plugin: 'maven'
version = "1.0"
group = "deptest.B"
repositories {
mavenLocal()
mavenCentral()
}
task testJar(type:Jar) {
from sourceSets.test.output
classifier = 'test'
}
dependencies {
compile project(":A")
testCompile project(path: ":A", configuration: 'testRuntime')
}
artifacts {
testRuntime testJar
archives testJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri("build/repo"))
}
}
}
settings.gradle:
include 'A','B'
Structure:
/
- A/build.gradle
- B/build.gadle
Generated pom-default.xml ( Project B):
=======================================
Gradle 1.11:
4.0.0
deptest.B
B
1.0
deptest.A
A
1.0
compile
deptest.A
A
1.0
test
Gradle clone from master with patch of DefaultPomDependenciesConverter.java: (Project B)
=================================================
4.0.0
deptest.B
B
1.0
deptest.A
A
1.0
compile
deptest.A
A
1.0
test
test
Summary: Classifier is decorated after the patch has been applied.