Skip to content

ScalaDoc for Scala 3 breaks multi-module build #18732

@dubinsky

Description

@dubinsky

Expected Behavior

$ ./gradlew scaladoc should work even if Scala 3 is used and even if the project has multiple subprojects.

Current Behavior

ScalaDoc is not generated; build fails.

Steps to Reproduce

$ git clone https://github.com/opentorah/opentorah.git
...
$ cd opentorah
$ ./gradlew scaladoc
...
> Task :opentorah-calendar:scaladoc
-- Error: ... undefined ... at readTasty ... cannot take signature of MethodType(...) ... 
the classfile defining the type might be missing from the classpath while compiling ...
> Task :opentorah-calendar:scaladoc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':opentorah-calendar:scaladoc'.
> A failure occurred while executing org.gradle.api.tasks.scala.internal.GenerateScaladoc
   > Could not generate scaladoc

Your Environment

Scala: 3.1.1-RC1
Gradle: 7.3-rc-1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions