Skip to content

Commit

Permalink
Drop OSGi support (pureconfig#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruippeixotog authored Oct 31, 2021
1 parent cef47e4 commit cda1e59
Show file tree
Hide file tree
Showing 26 changed files with 2 additions and 220 deletions.
5 changes: 2 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ThisBuild / organization := "com.github.pureconfig"
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.5.0"

lazy val core = (project in file("core"))
.enablePlugins(BoilerplatePlugin, SbtOsgi)
.enablePlugins(BoilerplatePlugin)
.settings(commonSettings)

lazy val testkit = (project in file("testkit"))
Expand All @@ -24,7 +24,7 @@ lazy val tests = (project in file("tests"))

// aggregates pureconfig-core and pureconfig-generic with the original "pureconfig" name
lazy val bundle = (project in file("bundle"))
.enablePlugins(SbtOsgi, ModuleMdocPlugin)
.enablePlugins(ModuleMdocPlugin)
.settings(commonSettings, mdocOut := file("."))
.dependsOn(core, generic)

Expand All @@ -34,7 +34,6 @@ lazy val docs = (project in file("docs"))
.dependsOn(bundle)

def genericModule(proj: Project) = proj
.enablePlugins(SbtOsgi)
.dependsOn(core)
.dependsOn(testkit % "test")
.settings(commonSettings)
Expand Down
9 changes: 0 additions & 9 deletions core/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,3 @@ name := "pureconfig-core"
crossScalaVersions := Seq(scala212, scala213, scala3)

libraryDependencies += Dependencies.typesafeConfig

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/akka-http/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,3 @@ mdocLibraryDependencies ++= Seq(
developers := List(
Developer("himanshu4141", "Himanshu Yadav", "himanshu4141@gmail.com", url("https://github.com/himanshu4141"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.akkahttp.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/akka/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@ developers := List(
Developer("derekmorr", "Derek Morr", "morr.derek@gmail.com", url("https://github.com/derekmorr")),
Developer("ruippeixotog", "Rui Gonçalves", "ruippeixotog@gmail.com", url("https://github.com/ruippeixotog"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.akka.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/cats-effect/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@ libraryDependencies ++= Seq(
)

developers := List(Developer("keirlawson", "Keir Lawson", "keirlawson@gmail.com", url("https://github.com/keirlawson")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.catseffect.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/cats-effect2/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@ libraryDependencies ++= Seq(
)

developers := List(Developer("keirlawson", "Keir Lawson", "keirlawson@gmail.com", url("https://github.com/keirlawson")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.catseffect2.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/cats/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,3 @@ developers := List(
Developer("derekmorr", "Derek Morr", "morr.derek@gmail.com", url("https://github.com/derekmorr")),
Developer("ruippeixotog", "Rui Gonçalves", "ruippeixotog@gmail.com", url("https://github.com/ruippeixotog"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.cats.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/circe/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,3 @@ libraryDependencies ++= Seq(
developers := List(
Developer("moradology", "Nathan Zimmerman", "npzimmerman@gmail.com", url("https://github.com/moradology"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.circe.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/cron4s/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@ libraryDependencies += "com.github.alonsodomin.cron4s" %% "cron4s-core" % "0.6.1
developers := List(
Developer("bardurdam", "Bárður Viberg Dam", "bardurdam@gmail.com", url("https://github.com/bardurdam"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.cron4s.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/enum/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@ developers := List(
Developer("melrief", "Mario Pastorelli", "pastorelli.mario@gmail.com", url("https://github.com/melrief")),
Developer("leifwickland", "Leif Wickland", "leifwickland@gmail.com", url("https://github.com/leifwickland"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.enum.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/enumeratum/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@ crossScalaVersions := Seq(scala212, scala213)
libraryDependencies ++= Seq("com.beachape" %% "enumeratum" % "1.7.0")

developers := List(Developer("aeons", "Bjørn Madsen", "bm@aeons.dk", url("https://github.com/aeons")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.enumeratum.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/fs2/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@ libraryDependencies ++= Seq(
)

developers := List(Developer("keirlawson", "Keir Lawson", "keirlawson@gmail.com", url("https://github.com/keirlawson")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.fs2.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/generic/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@ libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.7",
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.generic.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/hadoop/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@ libraryDependencies ++= Seq("org.apache.hadoop" % "hadoop-common" % "3.3.1" % "p
mdocLibraryDependencies ++= Seq("org.apache.hadoop" % "hadoop-common" % "3.3.1")

developers := List(Developer("lmnet", "Yuriy Badalyantc", "lmnet89@gmail.com", url("https://github.com/lmnet")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.hadoop.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/http4s/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@ libraryDependencies ++= Seq("org.http4s" %% "http4s-core" % "0.23.6")
developers := List(
Developer("jcranky", "Paulo Siqueira", "paulo.siqueira@gmail.com", url("https://github.com/jcranky"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.http4s.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/javax/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,3 @@ name := "pureconfig-javax"
crossScalaVersions := Seq(scala212, scala213)

developers := List(Developer("derekmorr", "Derek Morr", "morr.derek@gmail.com", url("https://github.com/derekmorr")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.javax.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/joda/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@ developers := List(
Developer("melrief", "Mario Pastorelli", "pastorelli.mario@gmail.com", url("https://github.com/melrief")),
Developer("leifwickland", "Leif Wickland", "leifwickland@gmail.com", url("https://github.com/leifwickland"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.joda.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/magnolia/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,3 @@ libraryDependencies ++= Seq(
developers := List(
Developer("ruippeixotog", "Rui Gonçalves", "ruippeixotog@gmail.com", url("https://github.com/ruippeixotog"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.magnolia.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/scala-xml/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,3 @@ libraryDependencies ++= forScalaVersions {
}.value

developers := List(Developer("derekmorr", "Derek Morr", "morr.derek@gmail.com", url("https://github.com/derekmorr")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.scalaxml.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/scalaz/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,3 @@ mdocScalacOptions += "-Ypartial-unification"
developers := List(
Developer("ChernikovP", "Pavel Chernikov", "chernikov.pavel92@gmail.com", url("https://github.com/ChernikovP"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.scalaz.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/spark/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,3 @@ crossScalaVersions := Seq(scala212, scala213)

libraryDependencies ++= Seq("org.apache.spark" %% "spark-sql" % "3.2.0" % "provided")
mdocLibraryDependencies ++= Seq("org.apache.spark" %% "spark-sql" % "3.2.0")

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.spark.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/squants/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@ developers := List(
Developer("melrief", "Mario Pastorelli", "pastorelli.mario@gmail.com", url("https://github.com/melrief")),
Developer("cranst0n", "Ian McIntosh", "cranston.ian@gmail.com", url("https://github.com/cranst0n"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.squants.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/sttp/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@ libraryDependencies ++= Seq(
)

developers := List(Developer("bszwej", "Bartlomiej Szwej", "bszwej@gmail.com", url("https://github.com/bszwej")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.sttp.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/yaml/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@ libraryDependencies ++= Seq("org.yaml" % "snakeyaml" % "1.29")
developers := List(
Developer("ruippeixotog", "Rui Gonçalves", "ruippeixotog@gmail.com", url("https://github.com/ruippeixotog"))
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.yaml.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
9 changes: 0 additions & 9 deletions modules/zio-config/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@ crossScalaVersions := Seq(scala212, scala213)
libraryDependencies ++= Seq(
"dev.zio" %% "zio-config-typesafe" % "1.0.10"
)

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.zioconfig.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(
s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""",
"*"
)
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.31")
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.3.4")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.6")
addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.6.1")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.24")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
Expand Down

0 comments on commit cda1e59

Please sign in to comment.