Skip to content

Commit

Permalink
[bugfix] Use the same version of JAXB as eXist-db
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Nov 6, 2023
1 parent aa101ad commit af1989c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
22 changes: 15 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import ReleaseTransformations._

val jaxbApiV = "3.0.1"

val jaxbImplV = "3.0.2"

ThisBuild / versionScheme := Some("semver-spec")

lazy val root = Project("exist-algolia-index", file("."))
Expand All @@ -23,13 +27,18 @@ lazy val root = Project("exist-algolia-index", file("."))
name = "Adam Retter",
email = "adam@evolvedbinary.com",
url = url("https://www.evolvedbinary.com")
),
Developer(
id = "mamroure",
name = "Younes Bahloul",
email = "younes@evolvedbinary.com",
url = url("https://www.evolvedbinary.com")
)
),
headerLicense := Some(HeaderLicense.GPLv3("2016", "Belgrade Center for Digital Humanities")),
xjcLibs := Seq(
"org.glassfish.jaxb" % "jaxb-xjc" % "2.3.8",
"com.sun.xml.bind" % "jaxb-impl" % "2.3.8",
"com.sun.activation" % "jakarta.activation" % "1.2.2"
"org.glassfish.jaxb" % "jaxb-xjc" % jaxbImplV,
"org.glassfish.jaxb" % "jaxb-runtime" % jaxbImplV
),
libraryDependencies ++= {

Expand All @@ -45,14 +54,13 @@ lazy val root = Project("exist-algolia-index", file("."))

"org.parboiled" %% "parboiled" % "2.5.0",

"javax.xml.bind" % "jaxb-api" % "2.3.1",
"jakarta.xml.bind" % "jakarta.xml.bind-api" % jaxbApiV % Provided,
"org.glassfish.jaxb" % "jaxb-runtime" % jaxbImplV % Provided,

"org.clapper" %% "grizzled-slf4j" % "1.3.4"
exclude("org.slf4j", "slf4j-api"),

"org.exist-db" % "exist-core" % existV % Provided
exclude("org.exist-db.thirdparty.javax.xml.xquery", "xqjapi")
exclude("jakarta.xml.bind", "jakarta.xml.bind-api"),
"org.exist-db" % "exist-core" % existV % Provided,
"net.sf.saxon" % "Saxon-HE" % "9.9.1-8" % Provided,
"com.fasterxml.jackson.core" % "jackson-core" % jacksonV % Provided,
"commons-codec" % "commons-codec" % "1.15" % Provided,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.humanistika.exist.index.algolia

import javax.xml.bind.JAXBContext
import jakarta.xml.bind.JAXBContext

import org.exist.collections.Collection
import org.exist.dom.persistent._
Expand Down

0 comments on commit af1989c

Please # to comment.