Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include avsc files from external module #98

Open
hagay3 opened this issue Jan 9, 2024 · 2 comments
Open

include avsc files from external module #98

hagay3 opened this issue Jan 9, 2024 · 2 comments

Comments

@hagay3
Copy link

hagay3 commented Jan 9, 2024

Hi,
I'm trying to include avsc file from an external sbt module, do you have a possible solution for that ?
I have added the under "resources" folder of the external module.

Here is an example of what I'm trying to configure:

  val serviceA = Seq(
    Compile / avroSpecificSourceDirectories ++=
      (`internal-module-api` / Compile / avroSpecificSourceDirectories).value ++
        ("external-modules.com." %% "extrernal-api" % "1.3.3" / Compile / avroSpecificSourceDirectories).value <---- compile error
@julianpeeters
Copy link
Owner

Thanks very much for the report,

I'm not familiar with your error, however, I doubt I'd recognize the error message. My timeframe is pretty far out, but if you'd like to look into this, I might suggest setting up a scripted test in sbt-test.

@hagay3
Copy link
Author

hagay3 commented Jan 9, 2024

Thanks for the quick reply
Its not the real error.
I'm trying to extract the resources folder path out of external module (3rd party module).
I have an external nexus repo to which I'm releasing jars, then I want to use avsc files located in those external libs.
i don't know if its possible...

maybe this example will explain better what I'm trying to do:

  val externalLib: ModuleID = "external-modules.com." %% "extrernal-api" % "1.3.3"
  val serviceA = Seq(
    Compile / avroSpecificSourceDirectories ++=
      (`internal-module-api` / Compile / avroSpecificSourceDirectories).value ++
        (externalLib / Compile / avroSpecificSourceDirectories).value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants