Skip to content

Commit

Permalink
Get relative to project root. Relative path not working on windows bc…
Browse files Browse the repository at this point in the history
… windows had gradle wrapper path

Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Oct 11, 2024
1 parent 724db17 commit c831360
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ private static void tomlVersionsToProperties(TomlTable tomlTable, Properties pro
private static Properties getVersionProperties() {
TomlParseResult toml = null;
try {
toml = Toml.parse(Path.of("gradle/libs.versions.toml"));
Path path = Path.of(System.getProperty("user.dir"), "gradle/libs.versions.toml");
toml = Toml.parse(path);
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit c831360

Please sign in to comment.