7
7
import java .util .Locale ;
8
8
import java .util .Properties ;
9
9
10
- public class BuildInfo {
10
+ public final class BuildInfo {
11
11
12
12
public static final String UNKNOWN_VERSION = "*unknown*" ;
13
13
@@ -16,14 +16,14 @@ public class BuildInfo {
16
16
public static final String OS_ARCH = System .getProperty ("os.arch" , UNKNOWN_VERSION ).toLowerCase (Locale .ROOT );
17
17
public static final String JAVA_VERSION = System .getProperty ("java.version" , UNKNOWN_VERSION ).toLowerCase (Locale .ROOT );
18
18
19
- private final Version version ;
20
- private final String authors ;
21
- private final String developers ;
22
- private final String year ;
23
- private final String azureInstrumentationKey ;
24
- private final String minRequiredJavaVersion ;
25
- private final boolean allowJava9 ;
26
-
19
+ public final Version version ;
20
+ public final String authors ;
21
+ public final String developers ;
22
+ public final String year ;
23
+ public final String azureInstrumentationKey ;
24
+ public final String springerNatureAPIKey ;
25
+ public final String minRequiredJavaVersion ;
26
+ public final boolean allowJava9 ;
27
27
28
28
public BuildInfo () {
29
29
this ("/build.properties" );
@@ -47,35 +47,8 @@ public BuildInfo(String path) {
47
47
year = properties .getProperty ("year" , "" );
48
48
developers = properties .getProperty ("developers" , "" );
49
49
azureInstrumentationKey = properties .getProperty ("azureInstrumentationKey" , "" );
50
+ springerNatureAPIKey = properties .getProperty ("springerNatureAPIKey" , "" );
50
51
minRequiredJavaVersion = properties .getProperty ("minRequiredJavaVersion" , "1.8" );
51
52
allowJava9 = "true" .equals (properties .getProperty ("allowJava9" , "" ));
52
53
}
53
-
54
- public Version getVersion () {
55
- return version ;
56
- }
57
-
58
- public String getAuthors () {
59
- return authors ;
60
- }
61
-
62
- public String getDevelopers () {
63
- return developers ;
64
- }
65
-
66
- public String getYear () {
67
- return year ;
68
- }
69
-
70
- public String getAzureInstrumentationKey () {
71
- return azureInstrumentationKey ;
72
- }
73
-
74
- public String getMinRequiredJavaVersion () {
75
- return minRequiredJavaVersion ;
76
- }
77
-
78
- public boolean isAllowJava9 () {
79
- return allowJava9 ;
80
- }
81
54
}
0 commit comments