freezing-xylophone-6667
01/06/2020, 9:20 PM3rdparty/jvm/BUILD
I have the following:
jar_library(
name="finatratests",
jars=[
scala_jar(org='org.scalatest', name='scalatest', rev='3.0.0'),
scala_jar(org='com.twitter', name='inject-server', rev='19.12.0'),
scala_jar(org='com.twitter', name='inject-app', rev='19.12.0'),
scala_jar(org='com.twitter', name='inject-core', rev='19.12.0'),
scala_jar(org='com.twitter', name='inject-modules', rev='19.12.0'),
],
scope="compile test",
)
However, even though I set scope="compile test"
it’s not pulling in the test version of the jars. I’ve attempted to append -tests
to the artifact name and to the rev number to see if that would do it, but the generated path URL is incorrect when I do that. In SBT I’d do the following with the tests
classifier:
libraryDependencies += "com.twitter" %% "inject-server" % versions.finatra % "test" classifier "tests"
Any help would be great! Thanks!witty-crayon-22786
01/06/2020, 9:21 PMjar_library
target will be able to consume it, rather than which artifact to fetchfreezing-xylophone-6667
01/06/2020, 9:21 PMwitty-crayon-22786
01/06/2020, 9:21 PMscala_jar
/ jar
definitions have arguments that define which artifacts to resolvewitty-crayon-22786
01/06/2020, 9:22 PMfreezing-xylophone-6667
01/06/2020, 9:22 PMwitty-crayon-22786
01/06/2020, 9:22 PMfreezing-xylophone-6667
01/06/2020, 9:22 PMext
may be what I need?witty-crayon-22786
01/06/2020, 9:23 PMclassifier
, probablywitty-crayon-22786
01/06/2020, 9:24 PMclassifier
freezing-xylophone-6667
01/06/2020, 9:29 PM