File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
local-build-plugins/src/main/java/org/hibernate/reactive/env Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public void apply(Project project) {
58
58
project .getLogger ().lifecycle ( "Development version: n/a" );
59
59
}
60
60
61
- final VersionsTomlParser tomlParser = new VersionsTomlParser ( RELATIVE_CATALOG );
61
+ final VersionsTomlParser tomlParser = new VersionsTomlParser ( project . getRootProject (). file ( RELATIVE_CATALOG ) );
62
62
final String ormVersionString = determineOrmVersion ( project , tomlParser );
63
63
final Object ormVersion = resolveOrmVersion ( ormVersionString , project );
64
64
project .getLogger ().lifecycle ( "ORM version: {}" , ormVersion );
Original file line number Diff line number Diff line change 1
1
package org .hibernate .reactive .env ;
2
2
3
3
import java .io .BufferedReader ;
4
+ import java .io .File ;
4
5
import java .io .FileReader ;
5
6
import java .io .IOException ;
6
7
import java .util .HashMap ;
@@ -13,11 +14,12 @@ public class VersionsTomlParser {
13
14
14
15
private final Map <String , String > data = new HashMap <>();
15
16
16
- public VersionsTomlParser (String filePath ) {
17
+ public VersionsTomlParser (File filePath ) {
17
18
parse ( filePath );
18
19
}
19
20
20
- private void parse (String filePath ) {
21
+ private void parse (File filePath ) {
22
+
21
23
try ( BufferedReader reader = new BufferedReader ( new FileReader ( filePath ) ) ) {
22
24
String line ;
23
25
String currentSection = null ;
You can’t perform that action at this time.
0 commit comments