https://pantsbuild.org/ logo
#general
Title
# general
b

brief-engineer-67497

10/19/2018, 3:00 PM
Copy code
scala_library(
    name='main',
    dependencies=[
        'libs/foo:main',
        'libs/bar:main',
    ],
    sources=rglobs('src/main/*.scala'),
)
junit_tests(
    name='test',
    dependencies=[
        ':main',
        'libs/bar:test-lib',
        'libs/foo:test-lib',
    ],
    sources=rglobs('src/test/*.scala'),
)
knowing that libs/foo have a BUILD of the shape
Copy code
scala_library(name = 'main',
  dependencies = [
     '3rdparty/jvm/org/scalamacros:paradise',
  ],
  sources = rglobs('src/main/*.scala'),
)

junit_tests(
    name = 'test',
    dependencies = [
        ':main',
    ],
    sources = rglobs('src/test/*.scala'),
)

scala_library(
    name = 'test-lib',
    dependencies = [
        ':main',
    ],
    sources = rglobs('src/test/*.scala'),
)