diff --git a/project/plugins.sbt b/project/plugins.sbt index f2ddc2455f..b475354dbd 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,4 +1,4 @@ -val sbtSoftwareMillVersion = "2.0.12" +val sbtSoftwareMillVersion = "2.0.18" val scalaFmtVersion = "2.5.1" val sbtRevolverVersion = "0.10.0" diff --git a/src/main/scala/com/softwaremill/realworld/articles/comments/Comment.scala b/src/main/scala/com/softwaremill/realworld/articles/comments/Comment.scala index f672d0acf0..6c16c948a1 100644 --- a/src/main/scala/com/softwaremill/realworld/articles/comments/Comment.scala +++ b/src/main/scala/com/softwaremill/realworld/articles/comments/Comment.scala @@ -1,7 +1,7 @@ package com.softwaremill.realworld.articles.comments import sttp.tapir.{Schema, SchemaType} -import zio.json.{DeriveJsonDecoder, DeriveJsonEncoder, JsonCodec, JsonDecoder, JsonEncoder} +import zio.json.{DeriveJsonDecoder, DeriveJsonEncoder, JsonDecoder, JsonEncoder} import java.time.Instant diff --git a/src/main/scala/com/softwaremill/realworld/articles/comments/CommentsService.scala b/src/main/scala/com/softwaremill/realworld/articles/comments/CommentsService.scala index 2274f1dcee..addf719455 100644 --- a/src/main/scala/com/softwaremill/realworld/articles/comments/CommentsService.scala +++ b/src/main/scala/com/softwaremill/realworld/articles/comments/CommentsService.scala @@ -1,6 +1,5 @@ package com.softwaremill.realworld.articles.comments -import com.softwaremill.realworld.articles.comments.CommentsService.* import com.softwaremill.realworld.articles.core.{ArticleSlug, ArticlesRepository} import com.softwaremill.realworld.common.Exceptions import com.softwaremill.realworld.common.Exceptions.{BadRequest, NotFound, Unauthorized} diff --git a/src/main/scala/com/softwaremill/realworld/common/BaseEndpoints.scala b/src/main/scala/com/softwaremill/realworld/common/BaseEndpoints.scala index 97912a503a..5611b95713 100644 --- a/src/main/scala/com/softwaremill/realworld/common/BaseEndpoints.scala +++ b/src/main/scala/com/softwaremill/realworld/common/BaseEndpoints.scala @@ -5,7 +5,6 @@ import com.softwaremill.realworld.common.* import com.softwaremill.realworld.common.BaseEndpoints.{UserWithEmailNotFoundMessage, defaultErrorOutputs} import com.softwaremill.realworld.users.UsersRepository import sttp.model.StatusCode -import sttp.model.headers.WWWAuthenticateChallenge import sttp.tapir.generic.auto.* import sttp.tapir.json.zio.jsonBody import sttp.tapir.ztapir.* diff --git a/src/main/scala/com/softwaremill/realworld/common/Configuration.scala b/src/main/scala/com/softwaremill/realworld/common/Configuration.scala index cfe3107aab..1f723c4e56 100644 --- a/src/main/scala/com/softwaremill/realworld/common/Configuration.scala +++ b/src/main/scala/com/softwaremill/realworld/common/Configuration.scala @@ -3,7 +3,6 @@ package com.softwaremill.realworld.common import zio.ZLayer import zio._ import zio.config.magnolia._ -import zio.config.typesafe.TypesafeConfigProvider final case class RootConfig( config: AppConfig diff --git a/src/main/scala/com/softwaremill/realworld/users/Profile.scala b/src/main/scala/com/softwaremill/realworld/users/Profile.scala index 4c980ee610..c64708fca0 100644 --- a/src/main/scala/com/softwaremill/realworld/users/Profile.scala +++ b/src/main/scala/com/softwaremill/realworld/users/Profile.scala @@ -2,8 +2,8 @@ package com.softwaremill.realworld.users import com.softwaremill.realworld.common.NoneAsNullOptionEncoder.* import com.softwaremill.realworld.common.domain.Username -import sttp.tapir.{Schema, SchemaType} import zio.json.{DeriveJsonDecoder, DeriveJsonEncoder, JsonDecoder, JsonEncoder} + case class Profile(username: Username, bio: Option[String], image: Option[String], following: Boolean) object Profile: