1

I'm not sure how to set ScalaDoc options in Gradle, but it appears possible because I see that Gradle has ScalaDoc and ScalaDocOptions. ScalaDocOptions has a setFooter, which I am interested in calling.

How do I use these methods?

Opal
  • 81,889
  • 28
  • 189
  • 210
Ben McCann
  • 18,548
  • 25
  • 83
  • 101

1 Answers1

1

The following piece of code should work:

apply plugin: 'scala'

repositories {
    mavenCentral()
}

dependencies {
    compile 'org.scala-lang:scala-library:2.11.1'
}

project.tasks.scaladoc.scalaDocOptions.footer = 'lol'

but it doesn't since gradle under the hood calls ant which does not support this attribute.

Here you have a demo. Run it with gradle scaladoc -s to see where the problem lies.

However this answer in general shows how you can configure task's options and attributes.

Opal
  • 81,889
  • 28
  • 189
  • 210
  • There's an answer for SBT: http://stackoverflow.com/questions/15996651/is-there-a-way-to-include-math-formulae-in-scaladoc/32114551#32114551 – Ben McCann Nov 02 '16 at 22:45