diff --git a/README.md b/README.md index 8c229b5..91c923e 100644 --- a/README.md +++ b/README.md @@ -158,22 +158,3 @@ will return something like: ``` See the [examples](https://github.com/ethauvin/cryptoprice/blob/master/examples/) for more details. - -## Contributing - -If you want to contribute to this project, all you have to do is clone the GitHub -repository: - -```console -git clone git@github.com:ethauvin/cryptoprice.git -``` - -Then use [bld](https://rife2.com/bld) to build: - -```console -cd cryptoprice -./bld compile -``` - -The project has an [IntelliJ IDEA](https://www.jetbrains.com/idea/) project structure. You can just open it after all -the dependencies were downloaded and peruse the code. diff --git a/examples/bld/src/main/kotlin/com/example/CryptoPriceExample.kt b/examples/bld/src/main/kotlin/com/example/CryptoPriceExample.kt index 6aa15fc..4eb0a6c 100644 --- a/examples/bld/src/main/kotlin/com/example/CryptoPriceExample.kt +++ b/examples/bld/src/main/kotlin/com/example/CryptoPriceExample.kt @@ -41,7 +41,7 @@ fun main(args: Array) { } catch (e: CryptoException) { System.err.println("HTTP Status Code: ${e.statusCode}") System.err.println("${e.message} (${e.id})") - } catch (ignore: IllegalArgumentException) { + } catch (e: IllegalArgumentException) { System.err.println("Could not display the specified currency: ${args[1]}") } catch (e: IOException) { System.err.println(e.message) diff --git a/examples/gradle/bin/main/com/example/CryptoPriceExample.kt b/examples/gradle/bin/main/com/example/CryptoPriceExample.kt index 5c670a8..da169d0 100644 --- a/examples/gradle/bin/main/com/example/CryptoPriceExample.kt +++ b/examples/gradle/bin/main/com/example/CryptoPriceExample.kt @@ -39,7 +39,7 @@ fun main(args: Array) { } catch (e: CryptoException) { System.err.println("HTTP Status Code: ${e.statusCode}") System.err.println(e.message) - } catch (ignore: IllegalArgumentException) { + } catch (e: IllegalArgumentException) { System.err.println("Could not display the specified currency: ${args[1]}") } catch (e: IOException) { System.err.println(e.message) diff --git a/examples/gradle/src/main/kotlin/com/example/CryptoPriceExample.kt b/examples/gradle/src/main/kotlin/com/example/CryptoPriceExample.kt index 6aa15fc..4eb0a6c 100644 --- a/examples/gradle/src/main/kotlin/com/example/CryptoPriceExample.kt +++ b/examples/gradle/src/main/kotlin/com/example/CryptoPriceExample.kt @@ -41,7 +41,7 @@ fun main(args: Array) { } catch (e: CryptoException) { System.err.println("HTTP Status Code: ${e.statusCode}") System.err.println("${e.message} (${e.id})") - } catch (ignore: IllegalArgumentException) { + } catch (e: IllegalArgumentException) { System.err.println("Could not display the specified currency: ${args[1]}") } catch (e: IOException) { System.err.println(e.message) diff --git a/pom.xml b/pom.xml index f913bc2..c8257fc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.thauvin.erik cryptoprice - 1.0.3-SNAPSHOT + 1.0.2 cryptoprice Retrieve cryptocurrencies prices https://github.com/ethauvin/cryptoprice @@ -18,7 +18,25 @@ org.jetbrains.kotlin kotlin-stdlib - 1.9.22 + 1.9.21 + compile + + + org.jetbrains.kotlin + kotlin-stdlib-common + 1.9.21 + compile + + + org.jetbrains.kotlin + kotlin-stdlib-jdk7 + 1.9.21 + compile + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + 1.9.21 compile