-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Scala plugin's scaladoc task broken with Scala 2.13.0 #9855
Comments
I have encountered the same problem using Scale 13.1 and using either gradle 4.10.2 or 5.6.2. |
Gradle 6.0 will have improvements, including better support of Scala 2.13. When 6.0 RC1 is out, could you test again? |
I did; it breaks the same way. "Better support for Scala 2.13" is not going to fix this issue; Gradle Scala plugin needs to be reworked to NOT use |
Broken for 2.13. Re-instate when fixed: gradle/gradle#9855
Scala 2.13 indeed broke everyone by removing the Ant support. We looked into fixing the issue by executing the work directly inside a worker action (https://github.com/gradle/gradle/tree/lacasseio/scala-doc-fix-for-2.13) however we hit an issue with the classloader which makes it impossible to run the action hence doesn't fix the issue. At the moment, it would be recommended to build https://github.com/cigaly/scala-ant and adding that JAR to the We will look into the classloader issue with the worker API to see what needs to be fixed so we can move forward with a proper fix to handle 2.13 breakage. |
Thank you!!! |
Just if anyone is interested. Minimal gradle build configuration that worked for me:
|
Just to be clear, it looks like this should be fixed in release 6.2 of Gradle. Please correct me if that is not correct. |
Yep, this is fixed in release and will be in 6.2 |
Expected Behavior
When
gradle scaladoc
is run, Scaladoc should be generated.Current Behavior
When using Scala 2.13.0:
Context
When publishing to JCenter, I include Scaladoc jar - which is impossible to generate with Scala 2.13.
Steps to Reproduce
In the attached project gradle-scaladoc-bug.zip
Reason:
https://github.com/gradle/gradle/blob/master/subprojects/scala/src/main/java/org/gradle/api/internal/tasks/scala/AntScalaDoc.java#L53 assumes presence of scala/tools/ant/antlib.xml, which was removed: scala/scala#6255; see also https://users.scala-lang.org/t/scala-2-13-0-ant-support/4694/11
Your Environment
Build scan URL: https://scans.gradle.com/s/7wmsskmoua3uu
The text was updated successfully, but these errors were encountered: