Skip to content

Commit

Permalink
Updated instantiation of RocksdbMavenPomCache.
Browse files Browse the repository at this point in the history
Bumped rewrite version to 7.7.0-SNAPSHOT.
  • Loading branch information
traceyyoshima committed May 28, 2021
1 parent de6bf31 commit 934337a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</scm>

<properties>
<rewrite.version>7.6.0</rewrite.version>
<rewrite.version>7.7.0-SNAPSHOT</rewrite.version>

<!-- using 'ssh' url scheme by default, which assumes a human is performing git operations leveraging an ssh key -->
<developerConnectionUrl>scm:git:ssh://[email protected]/openrewrite/rewrite-maven-plugin.git
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/openrewrite/maven/AbstractRewriteMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ protected Maven parseMaven(Path baseDir, ExecutionContext ctx) {
if (pomCacheEnabled) {
try {
if (pomCacheDirectory == null) {
//Default directory is "~/.rewrite/cache/pom"
mavenParserBuilder.cache(new RocksdbMavenPomCache(Paths.get(System.getProperty("user.home"), ".rewrite", "cache", "pom").toFile()));
//Default directory in RocksdbMavenPomCache is "~/.rewrite-cache"
mavenParserBuilder.cache(new RocksdbMavenPomCache(Paths.get(".")));
} else {

mavenParserBuilder.cache(new RocksdbMavenPomCache(Paths.get(pomCacheDirectory).toFile()));
mavenParserBuilder.cache(new RocksdbMavenPomCache(Paths.get(pomCacheDirectory)));
}
} catch (Exception e) {
getLog().warn("Unable to initialize RocksdbMavenPomCache, falling back to InMemoryMavenPomCache");
Expand Down

0 comments on commit 934337a

Please sign in to comment.