Skip to content

Commit d0bffcf

Browse files
committed
Expose OkHttp and Jackson dependencies
1 parent 7cf2b16 commit d0bffcf

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'java'
2+
id 'java-library'
33
id 'maven-publish'
44
}
55

@@ -48,6 +48,6 @@ repositories {
4848
}
4949

5050
dependencies {
51-
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
52-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
51+
api 'com.squareup.okhttp3:okhttp:4.12.0'
52+
api 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
5353
}

src/main/java/com/thewaterfall/request/FluentRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public static <T> Builder<T> request(String url, TypeReference<T> responseType,
151151
*
152152
* @param newClient The OkHttpClient to use for HTTP requests.
153153
*/
154-
private static void overrideClient(OkHttpClient newClient) {
154+
public static void overrideClient(OkHttpClient newClient) {
155155
client = newClient;
156156
}
157157

@@ -160,7 +160,7 @@ private static void overrideClient(OkHttpClient newClient) {
160160
*
161161
* @param newMapper The ObjectMapper to use for JSON processing.
162162
*/
163-
private static void overrideMapper(ObjectMapper newMapper) {
163+
public static void overrideMapper(ObjectMapper newMapper) {
164164
mapper = newMapper;
165165
}
166166

0 commit comments

Comments
 (0)