Skip to content
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 3: edit sources on-the-fly in sbt to support @pre213 methods in shared source code #4113

Merged
merged 4 commits into from
May 5, 2022

Conversation

jrudolph
Copy link
Contributor

@jrudolph jrudolph commented Apr 25, 2022

(But hopefully get soon rid of it when we drop Scala 2.12 support)

Only applied to akka-http-core so far.

@jrudolph jrudolph mentioned this pull request Apr 25, 2022
22 tasks
object Pre213Preprocessor extends AutoPlugin {
val pre213Files = settingKey[Seq[String]]("files that should be edited for pre213 annotation")

val pattern = """(?s)@pre213.*?@since213""".r
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we've come a far way from (only) running regex on URLs...

@jrudolph jrudolph marked this pull request as ready for review April 26, 2022 12:35
@jrudolph jrudolph changed the title [WIP] Scala 3: edit sources on-the-fly in sbt to support @pre213 methods in shared source code Scala 3: edit sources on-the-fly in sbt to support @pre213 methods in shared source code Apr 26, 2022
To verify that we have nothing broken so far
@jrudolph jrudolph merged commit 42bc5d9 into akka:scala-3 May 5, 2022
@jrudolph jrudolph deleted the scala3-pre213-sbt-solution branch May 5, 2022 14:13
@jrudolph
Copy link
Contributor Author

jrudolph commented May 5, 2022

Let's merge this even if this pattern will ultimately be removed for 10.3.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant