AbsaOSS / spline-spark-agent

Spline agent for Apache Spark
https://absaoss.github.io/spline/
Apache License 2.0
183 stars 93 forks source link

Replace deprecated `scalaj` HTTP client #601

Open wajda opened 1 year ago

wajda commented 1 year ago

from here:

THIS LIBRARY IS DEPRECATED

As of April 2022 there are many supported options for making HTTP calls in scala:

  • sttp or http4s might be good scala first options
  • The native HttpClient library if you're using JDK 11+ and want minimal deps
cerveada commented 12 months ago
Requirements: Lib Java Scala link
sttp 11+ 2.11+ https://sttp.softwaremill.com/en/stable/quickstart.html#quickstart
http4s 8+ 2.12+ https://http4s.org/versions.html
HttpClient 11+ - -

Maybe request scala could work with older versions, but that needs to be tested: https://github.com/com-lihaoyi/requests-scala

other alternatives

https://sttp.softwaremill.com/en/stable/other.html https://github.com/topics/http-client?l=scala