-
Notifications
You must be signed in to change notification settings - Fork 5k
Add toolchain support for Scala plugin #17494
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
Conversation
heads up @ljacomet :) |
746e8b8
to
a32d71f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this contribution.
Looks good to me, let's see what CI says 😉
The only missing bit is documentation. Could you take care of it as well?
Signed-off-by: Roberto Perez Alcolea <[email protected]>
a32d71f
to
5bdd1d6
Compare
Hi @ljacomet , Fixed missing |
Hi @ljacomet It seems CI is failing with https://ge.gradle.org/s/zpm6tl2lhkeyg
doesn't seem related to my changes Either way, I updated the branch with latest on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this merged! 🎉
@rpalcolea @ljacomet Note there is an error in asciidoc check:
|
Signed-off-by: Roberto Perez Alcolea <[email protected]>
Hi @blindpirate, good call I think 026f765 should take care of it
|
Add toolchain support for Scala plugin
Pre-tested commit build cancelled. |
Thanks @rpalcolea There's some issues in CI, I'll take care of it. @bot-gradle test and merge |
@bot-gradle test and merge |
Your PR is queued. See the queue page for details. |
Pre-tested commit build cancelled. |
OK, I've already triggered a build for you. |
Context
Toolchain support for scala is/was missing
This takes inspiration from the groovy PR. Adds support for
ScalaPlugin
andScalaDoc
taskSome sample outputs:
Toolchain detection
Running compilation:
scaladoc
Some screenshots

opportunities
AbstractScalaCompile
has methods such asconfigureCompatibilityOptions
which could be re-used for groovy compilation. Currently the method exists in thelanguage-java
project. Maybe this should be moved tolanguage-jvm
so it is re-usable. But that might mean moving some internal compilation classes.Happy to address this in this PR on in another
Contributor Checklist
<subproject>/src/integTest
) to verify changes from a user perspective<subproject>/src/test
) to verify logic./gradlew sanityCheck
./gradlew <changed-subproject>:quickTest
Gradle Core Team Checklist