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

Can I also add javadocs of all dependend projects to the pack-output? #103

Open
liebichw opened this issue Feb 15, 2016 · 2 comments
Open

Comments

@liebichw
Copy link

I'm evaluating sbt-pack for a library which we distribute to other groups (which use neither ivy nor sbt nor maven). This distribution should include the libraries we build, along with the javadocs.

Setting up a distribution for the JARs is easy with sbt-pack, but I could not figure out a way to also include the javadcos for the top-level project and also for the dependend projects. Is this possible with sbt-pack?

@themerius
Copy link

By adding this to your build.sbt:

packResourceDir += (baseDirectory.value / "target" / "scala-2.11" / "api" -> "docs")

The API documentation of the current project will be packaged. For the depended projects I'm not sure...

@liebichw
Copy link
Author

The recursive packaging is the key issue here. It is enough for me to use the packageDoc task - but this also does not run recursively over dependencies.
I found some workaround by modifying a plugin code found on the web, but this is using SBT 0.12 (?) syntax and looks complex as hell.

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