paul paul - 1 year ago 104
Scala Question

Scala Export/import macro project

I´ve been googling but I could not find a good documentation.

I create a project with an entry API using macros, but now since I cannot use it even from my own project I need to export it.

Anybody please can point me to a good documentation/blog where explain how to export/import a macro project with intellij?.


Answer Source

You don't need to do anything special. Just build it and use it as a dependency of other projects. If you are using SBT, run command sbt publishLocal. Also, you can use macros in other modules of a multi-module project, or in tests (if they are defined in main sources).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download