Skip to content

Commit

Permalink
Upgraded gson and logback (#71)
Browse files Browse the repository at this point in the history
Reason for lib upgrade is to have non-vulnerable versions of those libs.
Deleted also jcenter() as a source for dependency as it is no longer supported.
  • Loading branch information
marcin-cebo authored Jul 21, 2022
1 parent 5b7307b commit 769db14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ allprojects {

repositories {
mavenCentral()
jcenter()
}

testSets {
Expand Down Expand Up @@ -90,12 +89,12 @@ dependencies {
implementation "org.slf4j:slf4j-api:1.7.30"

api 'com.squareup.okhttp3:logging-interceptor:4.9.3'
api 'com.google.code.gson:gson:2.8.6'
api 'com.google.code.gson:gson:2.9.0'

allTest "com.github.tomakehurst:wiremock:2.27.2"

allTest "ch.qos.logback:logback-classic:1.2.3"
allTest "ch.qos.logback:logback-core:1.2.3"
allTest "ch.qos.logback:logback-classic:1.2.11"
allTest "ch.qos.logback:logback-core:1.2.11"
allTest "org.json:json:20210307"

testImplementation group: 'io.cucumber', name: 'cucumber-java', version: '6.10.4'
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/com/pubnub/api/managers/MapperManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class MapperManager {
.registerTypeAdapter(Boolean::class.java, booleanAsIntAdapter)
.registerTypeAdapter(JSONObject::class.java, JSONObjectAdapter())
.registerTypeAdapter(JSONArray::class.java, JSONArrayAdapter())
.disableHtmlEscaping()
.create()
converterFactory = GsonConverterFactory.create(objectMapper)
}
Expand Down

0 comments on commit 769db14

Please sign in to comment.