-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
compiler: account for Scala 2 and 3 differences in generated varargs code #737
Conversation
125dff2
to
c9bef0a
Compare
84861d8
to
3190e1e
Compare
@ahjohannessen @mkurz I checked this for Gradle and as I expected all is fine. The changes in twirl-compiler works fine for all supported build systems. |
@ihostage That is great to hear :) |
9277011
to
c38c2e9
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!
I pushed a commit which adds an overloaded function so we stay compatible with previous releases. I know the plugin
project is not checked by MiMa because we ususally don't guarantee compatibility for sbt plugins, but this is a cheap thing to do and avoids breaking apps in case someone relies on the method.
I just used a dummy scala version that makes sure Scala 2 code gets generated by default, just like before.
I will cut a new release after that.
@Mergifyio backport 1.6.x |
✅ Backports have been created
|
@mkurz Super :) Next thing could perhaps be to introduce something like: trait TwirlCompiler {
def compile(…)
// perhaps not necessary
def compileVirtual(…)
} and do some cleanup with compile options. |
@ahjohannessen Pull requests always welcome 😉 |
[1.6.x] compiler: account for Scala 2 and 3 differences in generated varargs code (backport #737) by @ahjohannessen
This adds a bit of redudant overloads. The most important aspect for me now is that mima and tests pass plus a minor release can be shipped. At a later time, one can remove overloads and duplication, do a cleanup with a breaking change and bump major version or similar.