Skip to content

Commit

Permalink
Refactorings (#998)
Browse files Browse the repository at this point in the history
* Move Maven related classes into maven package
* Organize imports
* Merge ModuleParser into MavenModuleParser
  • Loading branch information
fabapp2 authored Nov 15, 2023
1 parent 2b2ea32 commit 1f4eea2
Show file tree
Hide file tree
Showing 13 changed files with 253 additions and 305 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import lombok.RequiredArgsConstructor;
import org.openrewrite.xml.tree.Xml;
import org.springframework.core.io.Resource;
import org.springframework.sbm.parsers.maven.MavenProject;
import org.springframework.sbm.utils.ResourceUtil;

import java.nio.file.Path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,8 @@ Consumer<Throwable> artifactDownloaderErrorConsumer() {
}

@Bean
ModuleParser moduleParser() {
return new ModuleParser();
}

@Bean
MavenModuleParser mavenModuleParser(ParserProperties parserProperties, ModuleParser moduleParser) {
return new MavenModuleParser(parserProperties, moduleParser);
MavenModuleParser mavenModuleParser(ParserProperties parserProperties) {
return new MavenModuleParser(parserProperties);
}

@Bean
Expand Down
Loading

0 comments on commit 1f4eea2

Please sign in to comment.