Why does Typesafe Activator not set up documentation for dependencies in IDEA?

454 Views Asked by At

I've noticed that if I create a new IntelliJ IDEA project with SBT and gen-idea It will set up the project structure to have the class jars, source jars and javadocs jars.

However if I use a Typesafe Activator template and run either gen-idea from within the web UI or manually via SBT, it only sets up the class jars.

Is downloading and configuring documentation for libraries something that needs to be defined in build.sbt or is it some local misconfiguration?

2

There are 2 best solutions below

3
Jacek Laskowski On BEST ANSWER

I don't know about the sbt-idea plugin, but the answer to "Is downloading and configuring documentation for libraries something that needs to be defined in build.sbt or is it some local misconfiguration?" is yes as described in the official documentation of sbt in Library Management under Download Sources:

To have sbt download the dependency’s sources without using an IDE plugin, add withSources() to the dependency definition. For API jars, add withJavadoc(). For example:

libraryDependencies += 
  "org.apache.felix" % "org.apache.felix.framework" % "1.8.0" withSources() withJavadoc()
0
Havoc P On

Maybe it's different versions of the sbt-idea plugin? Look in your project/ directory and your global ~/.sbt/0.13 directory for where sbt-idea gets added and see if you have the same version in the two cases.