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

Mvn delete #318

Merged
merged 3 commits into from
Dec 12, 2021
Merged

Mvn delete #318

merged 3 commits into from
Dec 12, 2021

Conversation

MSaguer
Copy link
Contributor

@MSaguer MSaguer commented Dec 12, 2021

Hi,
I propose this PR to close #277

It adds two maven services

  • delete existing version property using its identifier from maven pom
  • delete dependency from pom using its package and artifacts id. May content other fields such as scope

@CLAassistant
Copy link

CLAassistant commented Dec 12, 2021

CLA assistant check
All committers have signed the CLA.

@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2021

Codecov Report

Merging #318 (18d1c12) into main (deb0d8b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##                main      #318   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       456       461    +5     
===========================================
  Files             80        80           
  Lines           1453      1476   +23     
  Branches          32        32           
===========================================
+ Hits            1453      1476   +23     
Impacted Files Coverage Δ
...ool/maven/application/MavenApplicationService.java 100.00% <100.00%> (ø)
...tor/buildtool/maven/domain/MavenDomainService.java 100.00% <100.00%> (ø)
...frastructure/secondary/ProjectLocalRepository.java 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update deb0d8b...18d1c12. Read the comment docs.

@@ -12,6 +12,7 @@
void template(Project project, String source, String sourceFilename, String destination, String destinationFilename);

void replaceText(Project project, String source, String sourceFilename, String oldText, String newText);
void replaceInFile(Project project, String source, String sourceFilename, String regexpText, String newText);
Copy link
Member

Choose a reason for hiding this comment

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

I would rename this: replaceInFile -> replaceRegexp
It is to not confuse with replaceText

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I forgot to rename it after my last modification. Fix has been pushed.

@pascalgrimaud
Copy link
Member

Thanks a lot @MSaguer for your contribution. And congrats for keeping the coverage at the max :-)

I added a minor comment. What do you think?

@pascalgrimaud pascalgrimaud merged commit 599306f into jhipster:main Dec 12, 2021
@MSaguer MSaguer deleted the mvn_delete branch December 12, 2021 21:41
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.

Maven: delete dependency and property
4 participants