Skip to content

Commit

Permalink
ignore when springFactories file not there yet. use spring-guice late…
Browse files Browse the repository at this point in the history
…st release.
  • Loading branch information
HomeOfTheWizard committed Jul 1, 2024
1 parent efeb0c3 commit 28836dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<dependency>
<groupId>org.springframework.guice</groupId>
<artifactId>spring-guice</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.4</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private void writeTable(Object key, Set<String> value) {
try (Writer writer = getWriter(INDEX_FOLDER + "spring.factories")) {
properties.store(writer, "Updated by APT processor");
} catch (IOException e) {
warn("could not update spring.factories for " + PLUGIN + " annotated classes.");
error("could not update spring.factories for " + PLUGIN + " annotated classes.");
}
}

Expand All @@ -139,7 +139,7 @@ private Properties getFactories() {
try (Reader reader = getReader(INDEX_FOLDER + "spring.factories")) {
properties.load(reader);
} catch (IOException e) {
warn("could not find spring.factories file in classpath.");
//Ignore
}
return properties;
}
Expand Down

0 comments on commit 28836dc

Please sign in to comment.