File tree 4 files changed +21
-22
lines changed 4 files changed +21
-22
lines changed Original file line number Diff line number Diff line change 1
1
import sbt .Keys .test
2
2
3
+ // Supported versions
4
+ val scala212 = " 2.12.15"
5
+ val scala213 = " 2.13.10"
6
+ val scala3 = " 3.2.2"
7
+
3
8
ThisBuild / organization := " io.cequence"
4
- ThisBuild / scalaVersion := " 2.12.15 " // 2.13.10"
9
+ ThisBuild / scalaVersion := scala212
5
10
ThisBuild / version := " 0.3.1"
6
11
ThisBuild / isSnapshot := false
7
12
Original file line number Diff line number Diff line change @@ -6,9 +6,4 @@ val akkaHttpVersion = "10.5.0-M1"
6
6
7
7
libraryDependencies ++= Seq (
8
8
" com.typesafe.akka" %% " akka-http" % akkaHttpVersion // JSON WS Streaming
9
- )
10
-
11
- // we need this for Scala 2.13
12
- // dependencyOverrides ++= Seq(
13
- // "org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2"
14
- // )
9
+ )
Original file line number Diff line number Diff line change @@ -2,14 +2,18 @@ name := "openai-scala-client"
2
2
3
3
description := " Scala client for OpenAI API implemented using Play WS lib."
4
4
5
- val playWsVersion = " 2.1.10"
5
+ lazy val playWsVersion = settingKey[String ](" Play WS version to use" )
6
+
7
+ playWsVersion := {
8
+ scalaVersion.value match {
9
+ case " 2.12.15" => " 2.1.10"
10
+ case " 2.13.10" => " 2.2.0-M3"
11
+ case " 3.2.2" => " 2.2.0-M3"
12
+ case _ => " 2.1.10"
13
+ }
14
+ }
6
15
7
16
libraryDependencies ++= Seq (
8
- " com.typesafe.play" %% " play-ahc-ws-standalone" % playWsVersion,
9
- " com.typesafe.play" %% " play-ws-standalone-json" % playWsVersion
10
- )
11
-
12
- // we need this for Scala 2.13
13
- // dependencyOverrides ++= Seq(
14
- // "org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2"
15
- // )
17
+ " com.typesafe.play" %% " play-ahc-ws-standalone" % playWsVersion.value,
18
+ " com.typesafe.play" %% " play-ws-standalone-json" % playWsVersion.value
19
+ )
Original file line number Diff line number Diff line change @@ -4,9 +4,4 @@ description := "Guice/DI for OpenAI Scala Client"
4
4
5
5
libraryDependencies ++= Seq (
6
6
" net.codingwell" %% " scala-guice" % " 5.1.0"
7
- )
8
-
9
- // we need this for Scala 2.13
10
- // dependencyOverrides ++= Seq(
11
- // "org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2"
12
- // )
7
+ )
You can’t perform that action at this time.
0 commit comments