Temporary fix to maintain compatibility with transitive consumers who
are still explicitly depending on the testArtifact configuration of
the parseq module. This simply tacks on the parseq-test-api dependency.
Steps to reproduce error:
Consumer A depends directly on parseq-test-api@4.0.0
Consumer B depends directly on Consumer A, yet also depends directly on parseq@3.* using the testArtifact configuration.
Consumer B's dependency on parseq will be bumped up to 4.0.0, which will cause an error because the testArtifact configuration doesn't exist for parseq@4.0.0.
Without this fix, transitive consumers of parseq 4.0.0 may still be explicitly depending on the testArtifact configuration of the parseq module, which would result in an error like this:
Could not resolve all files for configuration ':consumer:testCompileClasspath'.
> Could not resolve com.linkedin.parseq:parseq:4.0.0-SNAPSHOT.
Required by:
project :consumer
> Project :consumer declares a dependency from configuration 'testCompile' to configuration 'testArtifact' which is not declared in the descriptor for com.linkedin.parseq:parseq:4.0.0-SNAPSHOT.
Temporary fix to maintain compatibility with transitive consumers who are still explicitly depending on the testArtifact configuration of the parseq module. This simply tacks on the parseq-test-api dependency.
Steps to reproduce error:
parseq-test-api@4.0.0
parseq@3.*
using thetestArtifact
configuration.parseq
will be bumped up to4.0.0
, which will cause an error because thetestArtifact
configuration doesn't exist forparseq@4.0.0
.Without this fix, transitive consumers of parseq 4.0.0 may still be explicitly depending on the
testArtifact
configuration of theparseq
module, which would result in an error like this: