sbt / sbt-pom-reader

Translates xml -> awesome. Maven-ish support for sbt.
Other
76 stars 26 forks source link

Maven test jar #11

Closed ScrapCodes closed 10 years ago

ScrapCodes commented 10 years ago

So I am trying to make someproject.dependsOn(streaming % "compile->compile;test->test") work somehow.

In maven this happens by specifying that we want to publish test jar for a particular artifact and then later require <type> as test-jar where it is actually needed. In SBT this is opposite, in the sense the project itself is not marked to publish test-jars but someproject may dependsOn its test jar. So this information is only required at only one place i.e where it is actually required.

jsuereth commented 10 years ago

Oh, and I think you know the Ivy mechanisms for this. What we need to do is get Ivy aware of the "testjar" artifact classifier. If there's not already an ivy issue open, please do so. We have a branch of Ivy we can try to add that support in.

ScrapCodes commented 10 years ago

Hey Josh,

That was a lot of helpful comments, but I have failed to grasp it all or somehow get this to work. I have tried working with "test->test" or classifier as configuration. But somehow it does not work. This patch is updated to have those changes. Take a look ! Meanwhile I will struggle more with this.

ScrapCodes commented 10 years ago

Closing this in favor of #14.