diff --git a/build.gradle b/build.gradle index 0cc3e50..15a0f5a 100644 --- a/build.gradle +++ b/build.gradle @@ -17,8 +17,8 @@ buildscript { } plugins { - id 'com.github.kt3k.coveralls' version '2.8.2' - id 'com.github.ben-manes.versions' version '0.20.0' + id 'com.github.kt3k.coveralls' version '2.10.1' + id 'com.github.ben-manes.versions' version '0.28.0' id "com.jfrog.bintray" version "1.8.4" } @@ -34,7 +34,7 @@ idea { project.ext { artifactGroup = "com.jdiazcano.cfg4k" - artifactVersion = "0.9.4" + artifactVersion = "0.9.41" } repositories { diff --git a/cfg4k-core/src/test/kotlin/com/jdiazcano/cfg4k/sources/URLConfigSourceTest.kt b/cfg4k-core/src/test/kotlin/com/jdiazcano/cfg4k/sources/URLConfigSourceTest.kt index 8962bb9..cc514b9 100644 --- a/cfg4k-core/src/test/kotlin/com/jdiazcano/cfg4k/sources/URLConfigSourceTest.kt +++ b/cfg4k-core/src/test/kotlin/com/jdiazcano/cfg4k/sources/URLConfigSourceTest.kt @@ -28,7 +28,7 @@ class URLConfigSourceTest: FeatureSpec({ val configSource = "a: b" val configPath = "/path" val server = MockWebServer().apply { start() } - val configUrl = server.url(configPath).url() + val configUrl = server.url(configPath).toUrl() scenario("should fetch config") { val source = URLConfigSource(configUrl) @@ -38,7 +38,7 @@ class URLConfigSourceTest: FeatureSpec({ val fetchedConfigSource = it.toList().single() fetchedConfigSource.shouldBe(configSource) - val request = server.takeRequest(1, TimeUnit.MILLISECONDS) + val request = server.takeRequest(1, TimeUnit.MILLISECONDS)!! request.method shouldBe "GET" request.path shouldBe configPath } @@ -49,7 +49,7 @@ class URLConfigSourceTest: FeatureSpec({ server.enqueue(MockResponse().setBody(configSource)) // Calling use to auto-close the stream source.read().use { - val request = server.takeRequest(1, TimeUnit.MILLISECONDS) + val request = server.takeRequest(1, TimeUnit.MILLISECONDS)!! request.getHeader(AUTH_HEADER).shouldBeNull() } } @@ -60,7 +60,7 @@ class URLConfigSourceTest: FeatureSpec({ server.enqueue(MockResponse().setBody(configSource)) // Calling use to auto-close the stream source.read().use { - val request = server.takeRequest(1, TimeUnit.MILLISECONDS) + val request = server.takeRequest(1, TimeUnit.MILLISECONDS)!! request.getHeader(AUTH_HEADER).shouldBe(authHeader) } } diff --git a/gradle/versions.gradle b/gradle/versions.gradle index 241c3a6..4310bc9 100644 --- a/gradle/versions.gradle +++ b/gradle/versions.gradle @@ -1,22 +1,22 @@ ext.versions = [ jetbrains: [ - kotlin: '1.3.21', + kotlin: '1.3.70', spek: '1.1.2', engine: '1.2.1' ], - bytebuddy: '1.9.10', - klaxon: '5.0.5', - typesafe: '1.3.3', + bytebuddy: '1.10.8', + klaxon: '5.2', + typesafe: '1.4.0', jgit: '4.9.0.201710071750-r', expekt: '0.5.0', junitrunner: '1.1.0-M1', - snakeyaml: '1.24', + snakeyaml: '1.26', jcommander: '1.72', - mockwebserver: '3.13.1', - aws: '1.11.510', - logging: '1.6.25', + mockwebserver: '4.4.1', + aws: '1.11.745', + logging: '1.7.8', mockk: '1.9.3', - kotlintest: '3.3.1', + kotlintest: '3.4.2', assertk: '0.13' ]