Skip to content

Commit e5cd6b2

Browse files
committed
feat: Add method to load package version
1 parent a1bc73b commit e5cd6b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/ibm/cloud/sdk/core/util/RequestUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
*/
1313
package com.ibm.cloud.sdk.core.util;
1414

15+
import com.ibm.cloud.sdk.core.http.HttpMediaType;
16+
import com.ibm.cloud.sdk.core.http.InputStreamRequestBody;
1517
import okhttp3.MediaType;
1618
import okhttp3.RequestBody;
1719

@@ -133,7 +135,7 @@ public static String join(Iterable<?> iterable, String separator) {
133135
return sb.toString();
134136
}
135137

136-
private static String loadSdkVersion() {
138+
public static String loadCoreVersion() {
137139
ClassLoader classLoader = RequestUtils.class.getClassLoader();
138140
InputStream inputStream = classLoader.getResourceAsStream("version.properties");
139141
Properties properties = new Properties();

0 commit comments

Comments
 (0)