brave-planet-28195
10/07/2022, 9:55 AMjvm_artifact.excludes
heavily to fix transitive dependencies conflicts.
That brings the idea of grouping several jvm_artifacts together to form working groups
(groups of artifacts that 100% have no conflicts and can work nicely together)
Based on pants documentation here - "*target* ...This can be used as a generic "bag of dependencies", i.e. you can group several different targets into one single target so that your other targets only need to depend on one thing...."
But if I try to include empty target in the dependencies of scala_library
I get this:
ClasspathSourceMissing: No JVM classpath providers (from: CompileScalaSourceRequest, CoursierFetchRequest, DeployJarClasspathEntryRequest, JvmResourcesRequest) were compatible with the combination of inputs:
* src/main/scala/com/testingzone/test:test (target)
Should this be logged as issue? Or there is a better way of grouping scala/java dependencies and then using them?
P.S: As a temporary workaround I created folder with empty package object depends/package.scala
and defined dependencies like this:
scala_sources(
name = "fs2",
sources = ["package.scala"],
dependencies = [
"3rdparty/jvm/co/fs2:fs2-core",
"3rdparty/jvm/co/fs2:fs2-io",
]
)