witty-crayon-22786
07/19/2017, 10:20 PMwitty-crayon-22786
07/19/2017, 10:21 PMmysterious-farmer-45668
07/19/2017, 10:21 PMmysterious-farmer-45668
07/19/2017, 10:22 PMFor example, the finatra-http test-jar depends on the inject-app test-jar (among others). You will have to manually add a dependency on the inject-app test-jar when using the finatra-http test-jar since the inject-app test-jar will not be resolvedtransitively.
witty-crayon-22786
07/19/2017, 10:23 PMwitty-crayon-22786
07/19/2017, 10:24 PMfinatrat-http-testing
, and then just be unclassified, imomysterious-farmer-45668
07/19/2017, 10:29 PMmysterious-farmer-45668
07/19/2017, 10:29 PMjar_library(name='inject-core',
jars=[
scala_jar(org='com.twitter', name='inject-core', rev='2.1.6')
],)
jar_library(name='inject-test',
jars=[
scala_jar(org='com.twitter', name='inject-core', rev='2.1.6', classifier='tests')
],)
jar_library(name='finatra-test',
jars=[
scala_jar(org='com.twitter', name='finatra-http', rev='2.11.0', classifier='tests')
],
dependencies=[
':inject-core',
':inject-test',
])
mysterious-farmer-45668
07/19/2017, 10:29 PMmysterious-farmer-45668
07/19/2017, 10:30 PMwitty-crayon-22786
07/19/2017, 10:30 PMjars
list.mysterious-farmer-45668
07/19/2017, 10:30 PMmysterious-farmer-45668
07/19/2017, 10:31 PMmysterious-farmer-45668
07/19/2017, 10:31 PMjar_library(name='finatra-test',
jars=[
scala_jar(org='com.twitter', name='finatra-http', rev='2.11.0', classifier='tests')
scala_jar(org='com.twitter', name='inject-core', rev='2.1.6', classifier='tests')
],)
?mysterious-farmer-45668
07/19/2017, 10:32 PMmysterious-farmer-45668
07/19/2017, 10:33 PMmysterious-farmer-45668
07/20/2017, 12:18 AMmysterious-farmer-45668
07/20/2017, 5:58 AM./pants compile ::
, but compiles when it's the only target being compiled. Why would that be?mysterious-farmer-45668
07/20/2017, 6:16 AMfast-megabyte-33579
07/20/2017, 8:52 AMcompile ::
takes all the targets, joins all their classpaths together and tries to compile everything with thatfast-megabyte-33579
07/20/2017, 8:53 AMpurple-oil-45048
07/20/2017, 9:21 AMfast-megabyte-33579
07/20/2017, 10:26 AMintransitive=True
, and add targets for each jar in turnfast-megabyte-33579
07/20/2017, 10:27 AMmost-wire-83210
07/20/2017, 1:10 PMmost-wire-83210
07/20/2017, 3:49 PMmysterious-farmer-45668
07/20/2017, 6:39 PMjava_library
or a scala_library
target? i thought this was possible with ./pants binary
but it's not creating anything in dist- do the targets have to be jvm_binary
?mysterious-farmer-45668
07/20/2017, 6:41 PM./pants jar
doesn't create the jar in dist/
witty-crayon-22786
07/20/2017, 6:44 PMwitty-crayon-22786
07/20/2017, 6:45 PMjvm_binary
to be the entrypoint for the app