-
Notifications
You must be signed in to change notification settings - Fork 355
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
Add recipe for adding/replacing a Maven runtime config #4363
Conversation
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.
Some suggestions could not be made:
- rewrite-gradle/src/main/groovy/RewriteSettings.groovy
- lines 31-36
- rewrite-java-test/src/test/java/org/openrewrite/java/UseStaticImportTest.java
- lines 336-336
rewrite-maven/src/main/java/org/openrewrite/maven/AddRuntimeConfig.java
Outdated
Show resolved
Hide resolved
rewrite-maven/src/test/java/org/openrewrite/maven/AddRuntimeConfigTest.java
Outdated
Show resolved
Hide resolved
…nfig.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…nfigTest.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Some suggestions could not be made:
- rewrite-gradle/src/main/groovy/RewriteSettings.groovy
- lines 31-36
- rewrite-java-test/src/test/java/org/openrewrite/java/UseStaticImportTest.java
- lines 336-336
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.
Some suggestions could not be made:
- rewrite-gradle/src/main/groovy/RewriteSettings.groovy
- lines 31-36
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.
Some suggestions could not be made:
- rewrite-gradle/src/main/groovy/RewriteSettings.groovy
- lines 31-36
rewrite-maven/src/main/java/org/openrewrite/maven/AddRuntimeConfig.java
Outdated
Show resolved
Hide resolved
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.
Great start @bmuschko ; I've added a small polishing commit, mostly to make things smaller and more idiomatic. Feel free to go over the changes and let me know if you have any question.
No need to handle configuration aliases just yet; but we can see how that turns out in practice.
…nfig.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Some suggestions could not be made:
- rewrite-gradle/src/main/groovy/RewriteSettings.groovy
- lines 31-36
@timtebeek Thanks for the polishing and merging. All makes sense and gives additional guidance for future PRs. |
What's changed?
Introduces a new recipe for adding and replacing Maven runtime configuration in
.mvn/maven.config
or.mvn/jvm.config
.What's your motivation?
It's important for Maven projects to standardize on certain runtime flags and make them available through checked-in files the SCM. All developers that check out the code from SCM will automatically apply those flags. For example, you may want to execute the Maven build in parallel for better build performance and therefore introduce
-T=1C
inmaven.config
.Anything in particular you'd like reviewers to focus on?
=
character. In fact, you will find all notations across different pieces of documentation. The implementation allows for providing this option.maven.config
. Forjvm.config
, you should use a whitespace. The implementation takes this into consideration.-U
vs.--update-snapshots
. Please advise if you'd need this case to be handled with the initial PR and optimally "how".