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

Commit

Permalink
refactor: allow injection of retrofit client in API implementation, r… (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
bastiandoetsch authored Jan 26, 2023
1 parent 2029585 commit cc88a16
Show file tree
Hide file tree
Showing 13 changed files with 200 additions and 228 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @snyk/road-runner
* @snyk/hammerhead
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Fetch sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
Expand All @@ -19,15 +19,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Fetch sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: 'zulu'

- name: Setup Gradle cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.3.5] - 2023-01
- refactor: allow injection of retrofit client in API implementation
- refactor: remove setBaseURL API method - inject/use your configured retrofit client instead in the API implementaiton.

## [2.3.4] - 2022-05
- update fallbacks for supported extensions and configFiles
- change: provide ability to distinguish if supported file belong to supported extensions or configFiles
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = "io.snyk.code.sdk"
archivesBaseName = "snyk-code-client"
version = "2.3.4"
version = "2.3.5"

repositories {
mavenLocal()
Expand Down Expand Up @@ -48,7 +48,7 @@ dependencies {
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'org.jetbrains:annotations:22.0.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.2'
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'

testImplementation 'junit:junit:4.13.2'
integTestImplementation 'junit:junit:4.13.2'
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Mar 13 19:35:05 MSK 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit cc88a16

Please sign in to comment.