Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit cc88a16

Browse files
refactor: allow injection of retrofit client in API implementation, r… (#43)
* refactor: allow injection of retrofit client in API implementation, remove setBaseURL API method * chore: update to jdk 11, update workflow * chore: revert to jdk 1.8 as IntelliJ 2020.2 requires it
1 parent 2029585 commit cc88a16

File tree

13 files changed

+200
-228
lines changed

13 files changed

+200
-228
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @snyk/road-runner
1+
* @snyk/hammerhead

.github/workflows/test.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Fetch sources
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212

1313
- name: Validate Gradle Wrapper
1414
uses: gradle/wrapper-validation-action@v1
@@ -19,15 +19,16 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Fetch sources
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323

2424
- name: Setup Java
25-
uses: actions/setup-java@v1
25+
uses: actions/setup-java@v3
2626
with:
27-
java-version: 11
27+
java-version: 17
28+
distribution: 'zulu'
2829

2930
- name: Setup Gradle cache
30-
uses: actions/cache@v2
31+
uses: actions/cache@v3
3132
with:
3233
path: |
3334
~/.gradle/caches

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.3.5] - 2023-01
2+
- refactor: allow injection of retrofit client in API implementation
3+
- refactor: remove setBaseURL API method - inject/use your configured retrofit client instead in the API implementaiton.
4+
15
## [2.3.4] - 2022-05
26
- update fallbacks for supported extensions and configFiles
37
- change: provide ability to distinguish if supported file belong to supported extensions or configFiles

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77
group = "io.snyk.code.sdk"
88
archivesBaseName = "snyk-code-client"
9-
version = "2.3.4"
9+
version = "2.3.5"
1010

1111
repositories {
1212
mavenLocal()
@@ -48,7 +48,7 @@ dependencies {
4848
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
4949
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
5050
implementation 'org.jetbrains:annotations:22.0.0'
51-
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.2'
51+
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
5252

5353
testImplementation 'junit:junit:4.13.2'
5454
integTestImplementation 'junit:junit:4.13.2'

gradle/wrapper/gradle-wrapper.jar

2.81 KB
Binary file not shown.
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Mar 13 19:35:05 MSK 2020
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
31
distributionBase=GRADLE_USER_HOME
42
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
4+
networkTimeout=10000
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)