few-gigabyte-4152
01/25/2022, 12:36 AMfew-gigabyte-4152
01/25/2022, 12:37 AM./pants compile products/datalogue/anduin/server/test/scala/io/datalogue/anduin/server:anduin
I get the output with error:
00:29:14 [INFO] initializing pantsd...
00:29:15 [INFO] pantsd initialized.
00:29:16 [WARN] Unmatched glob from products/datalogue/anduin/plugins/hadoop/main/java/org/apache/parquet/tools:tools's `sources` field: "products/datalogue/anduin/plugins/hadoop/main/java/org/apache/parquet/tools/*.scala"
00:29:16 [ERROR] Build graph construction failed: ExecutionError 1 Exception encountered:
MappingError: Failed to parse BUILD.tools:
SyntaxError('invalid syntax', ('<string>', 49, 15, 'SCALA_REV=2.11.12\n'))
(Use --print-exception-stacktrace to see more error details.)
I'm new to pants, so maybe there's something simple I'm missing.hundreds-father-404
01/25/2022, 12:38 AMfew-gigabyte-4152
01/25/2022, 12:56 AMjar_library(name='scalac-plugin-dep',
jars=[
scala_jar(org='com.github.ghik', name='silencer-plugin', rev='1.4.2'),
scala_jar(org='org.typelevel', name='kind-projector', rev='0.10.3'),
scala_jar(org='com.olegpy', name='better-monadic-for', rev='0.3.1')
])
scala_version = '2.12.12'
jar_library(
name='scala-library',
jars=[
jar(org='org.scala-lang', name='scala-library', rev=scala_version)
])
jar_library(
name='scalac',
jars=[
jar(org='org.scala-lang', name='scala-compiler', rev=scala_version)
])
jar_library(
name='scalafmt',
jars=[
jar(org='org.scalameta', name='scalafmt-cli_2.12', rev='2.7.5')
])
jar_library(
name='scalapbc',
jars=[
scala_jar('com.thesamet.scalapb', 'scalapbc', '0.11.1'),
scala_jar('org.typelevel', 'fs2-grpc-codegen', '1.1.4')
]
)
# 3.15 requires java 11
jooq_version = '3.14.14'
jar_library(
name='jooq_gen',
jars=[
jar('org.jooq', 'jooq-codegen', jooq_version),
jar('org.postgresql', 'postgresql', '42.2.23'),
jar('org.flywaydb', 'flyway-commandline', '7.9.2')
],
dependencies=[
'3rdparty/datalogue/jvm/org/apache/logging/log4j'
]
)
SCALA_REV=2.11.12
jar_library(
name = 'scalac-plugin-dep',
jars = [jar(org='org.scalameta', name='semanticdb-scalac_{}'.format(SCALA_REV), rev='2.0.1')],
)
few-gigabyte-4152
01/25/2022, 12:57 AMBUILD.tools
, not BUILD
and lives at the root of the monorepo.hundreds-father-404
01/25/2022, 12:59 AMSCALA_REV=2.11.12
to SCALA_REV = "2.11.12"
hundreds-father-404
01/25/2022, 12:59 AM2.11.12
(without quotes) as valid syntaxfew-gigabyte-4152
01/25/2022, 1:00 AM4.1.6
. Seems like using the latest version would be best.