gifted-cricket-25440
01/18/2023, 3:25 PMservices/integration/src/main/scala/com/integration/repository/MxRepo.scala:14: error: not found: object mongo4cats
import mongo4cats.client.MongoClient
Dependency BUILD:
GROUP_ID = "io.github.kirill5k"
VERSION = "0.6.4"
jvm_artifact(
name="core",
group=GROUP_ID,
artifact="mongo4cats-core_2.13",
version=VERSION,
resolve="sdk-V2",
packages=[
"mongo4cats.**",
"mongo4cats.client.**",
"mongo4cats.database.**",
"mongo4cats.operations.**",
],
)
toml for this service:
[groups.integration]
addresses = ["services/integration::"]
resolve = "jvm:sdk-V2"
display_name = "integration"
pants.toml, where I read this config:
[experimental-bsp]
groups_config_files = ["build.d/bsp/services.toml"]
I tried to show dependencies manually in the package BUILD file and the result is:
NoCompatibleResolve: The selected targets did not have a resolve in common:
jvm-default:
here all the dependencies resolved for jvm-default and paths to integration microservice, that should be resolved by sdk-V2
sdk-V2:
* 3rdparty/jvm/mongo4cats:core
Targets which will be merged onto the same classpath must share a resolve (from the [resolve]
Do you have any suggestions about it? Thanks in advance!witty-crayon-22786
01/18/2023, 5:27 PMservices/integration/src/main/scala/com/integration/repository/MxRepo.scala
in the sdk-v2
resolve?gifted-cricket-25440
01/18/2023, 5:58 PMwitty-crayon-22786
01/18/2023, 5:59 PMas for this group is configured resolve sdk-V2when you say “this is group is”, what do you mean? how is it configured?
gifted-cricket-25440
01/18/2023, 6:00 PM[groups.integration]
addresses = ["services/integration::"]
resolve = "jvm:sdk-V2"
display_name = "integration"
pants.toml, where I read this config:
[experimental-bsp]
groups_config_files = ["build.d/bsp/services.toml"]
gifted-cricket-25440
01/18/2023, 6:00 PMwitty-crayon-22786
01/18/2023, 6:01 PMgifted-cricket-25440
01/18/2023, 6:01 PMwitty-crayon-22786
01/18/2023, 6:01 PMwitty-crayon-22786
01/18/2023, 6:02 PM__defaults__
in a parent directory to set it for all child directorieswitty-crayon-22786
01/18/2023, 6:02 PMgifted-cricket-25440
01/18/2023, 6:03 PM