Skip to content

Commit

Permalink
Suppress package object inheritance warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ybasket committed Jan 28, 2024
1 parent aee15dd commit cc258cc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
10 changes: 7 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ThisBuild / developers := List(
tlGitHubDev("ybasket", "Yannick Heiber"),
)

val Scala213 = "2.13.11"
val Scala213 = "2.13.12"
ThisBuild / crossScalaVersions := Seq("2.12.18", Scala213, "3.3.1")
ThisBuild / scalaVersion := Scala213

Expand All @@ -17,14 +17,18 @@ ThisBuild / jsEnv := {
new NodeJSEnv(NodeJSEnv.Config().withEnv(Map("TZ" -> "UTC")))
}

// ensure we don't fail compilation – package objects with inheritance are used in http4s/http4s as well,
// better to stay style-consistent for now
ThisBuild / scalacOptions += "-Wconf:msg=package object inheritance is deprecated:s"

lazy val root = tlCrossRootProject.aggregate(xml, xmlScala, csv, cbor)

val http4sVersion = "0.23.25"
val scalaXmlVersion = "2.2.0"
val fs2Version = "3.9.4"
val fs2DataVersion = "1.10.0"
val munitVersion = "1.0.0-M8"
val munitCatsEffectVersion = "2.0.0-M3"
val munitVersion = "1.0.0-M10"
val munitCatsEffectVersion = "2.0.0-M4"

lazy val xml = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
Expand Down
4 changes: 1 addition & 3 deletions cbor/src/main/scala/org/http4s/fs2data/cbor/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@

package org.http4s.fs2data

import scala.annotation.nowarn

package object cbor extends CborInstances @nowarn
package object cbor extends CborInstances
4 changes: 1 addition & 3 deletions csv/src/main/scala/org/http4s/fs2data/csv/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@

package org.http4s.fs2data

import scala.annotation.nowarn

package object csv extends CsvInstances @nowarn
package object csv extends CsvInstances
3 changes: 0 additions & 3 deletions json/src/main/scala/org/http4s/fs2data/json/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@

package org.http4s.fs2data

import scala.annotation.nowarn

@nowarn
package object json extends JsonInstances
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@

package org.http4s.fs2data.xml

import scala.annotation.nowarn

package object scalaxml extends ElemInstances @nowarn
package object scalaxml extends ElemInstances
4 changes: 1 addition & 3 deletions xml/src/main/scala/org/http4s/fs2data/xml/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@

package org.http4s.fs2data

import scala.annotation.nowarn

package object xml extends XmlEventInstances @nowarn
package object xml extends XmlEventInstances

0 comments on commit cc258cc

Please sign in to comment.