Skip to content

Commit

Permalink
Remain binary compatible with OkHttp 3.x
Browse files Browse the repository at this point in the history
fixes #173
  • Loading branch information
larsgrefer committed Jul 20, 2021
1 parent 407b6f7 commit 6151542
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autoconfigure/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ dependencies {

optional 'org.springframework:spring-web'

optional 'com.squareup.okhttp3:okhttp'
optional 'com.squareup.okhttp3:logging-interceptor'
optional 'com.squareup.okhttp3:okhttp:3.+'
optional 'com.squareup.okhttp3:logging-interceptor:3.+'

testCompile('org.springframework.boot:spring-boot-starter-test') {
exclude group: "junit", module: "junit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public HttpLoggingInterceptor okHttp3LoggingInterceptor(
httpLoggingInterceptor = new HttpLoggingInterceptor();
}

httpLoggingInterceptor.level(properties.getLevel());
//noinspection deprecation
httpLoggingInterceptor.setLevel(properties.getLevel());

return httpLoggingInterceptor;
}
Expand Down

0 comments on commit 6151542

Please sign in to comment.