Skip to content

Improve the implementation of scalaCompileOptions.keepAliveMode property #21307

Merged
bot-gradle merged 1 commit intomasterfrom
donat/scala-plugin-improvement
Jul 21, 2022
Merged

Improve the implementation of scalaCompileOptions.keepAliveMode property #21307
bot-gradle merged 1 commit intomasterfrom
donat/scala-plugin-improvement

Conversation

@donat
Copy link
Member

@donat donat commented Jul 20, 2022

#20580 introduced keepAliveOption. The changes work fine, although a few things are missing, fixed by this PR:

  • Add test coverage
  • Rename keepAliveOption to keepAliveMode
  • Get ObjectFactory reference once per AbstractScalaCompile constructor
  • Set convention value in ScalaBasePlugin class
  • Use enum property to enforce configuration time validation errors

@donat donat force-pushed the donat/scala-plugin-improvement branch from ba6b3c0 to 932e2a6 Compare July 20, 2022 15:44
@donat donat marked this pull request as ready for review July 21, 2022 07:37
@donat donat requested review from a team and big-guy July 21, 2022 07:38
@donat donat force-pushed the donat/scala-plugin-improvement branch 3 times, most recently from 932e2a6 to 80b8302 Compare July 21, 2022 07:44
This change introduces the following improvements:
- Add test coverage
- Rename keepAliveOption to keepAliveMode
- Get ObjectFactory reference once per AbstractScalaCompile constructor
- Set convention value in ScalaBasePlugin class
- Use enum property to enforce configuration time validation errors
@donat donat force-pushed the donat/scala-plugin-improvement branch from 80b8302 to 38e8421 Compare July 21, 2022 07:45
@donat donat changed the title Improve implementation for keepAliveMode Scala compiler property Improve the implementation of scalaCompileOptions.keepAliveMode property Jul 21, 2022
@gradle gradle deleted a comment from donat Jul 21, 2022
@Incubating
public enum KeepAliveMode {
/**
* The compiler is kept alive for a session.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: maybe clarify here what a session is?

Copy link
Member

@eskatos eskatos left a comment

Choose a reason for hiding this comment

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

👍

@donat
Copy link
Member Author

donat commented Jul 21, 2022

@bot-gradle test and merge

@gradle gradle deleted a comment from donat Jul 21, 2022
@bot-gradle
Copy link
Collaborator

No milestone for this PR. Please set a milestone and retry.

@donat
Copy link
Member Author

donat commented Jul 21, 2022

cc @big-guy

@donat donat added this to the 7.6 RC1 milestone Jul 21, 2022
@donat
Copy link
Member Author

donat commented Jul 21, 2022

@bot-gradle test and merge

@gradle gradle deleted a comment from donat Jul 21, 2022
@bot-gradle
Copy link
Collaborator

OK, I've already triggered a build for you.

@bot-gradle bot-gradle merged commit ebbd6bf into master Jul 21, 2022
@donat donat deleted the donat/scala-plugin-improvement branch July 21, 2022 09:11
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.

4 participants