diff --git a/README.md b/README.md index 91c923e..8c229b5 100644 --- a/README.md +++ b/README.md @@ -158,3 +158,22 @@ 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 4eb0a6c..6aa15fc 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 (e: IllegalArgumentException) { + } catch (ignore: 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 da169d0..5c670a8 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 (e: IllegalArgumentException) { + } catch (ignore: 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 4eb0a6c..6aa15fc 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 (e: IllegalArgumentException) { + } catch (ignore: 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 c8257fc..f913bc2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.thauvin.erik cryptoprice - 1.0.2 + 1.0.3-SNAPSHOT cryptoprice Retrieve cryptocurrencies prices https://github.com/ethauvin/cryptoprice @@ -18,25 +18,7 @@ org.jetbrains.kotlin kotlin-stdlib - 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 + 1.9.22 compile