From 55c7f1ec32eb61598e79b747235e3ef9233ae81b Mon Sep 17 00:00:00 2001 From: Michel Davit Date: Thu, 13 Jan 2022 12:18:00 +0100 Subject: [PATCH] Depend on everit-json-schema from Maven Central instead of JitPack --- README.md | 19 ------------------- build.sbt | 3 +-- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/README.md b/README.md index 8707f93..fe522fe 100644 --- a/README.md +++ b/README.md @@ -15,24 +15,6 @@ The library only supports Draft 7 of the JSON Schema specification. We are currently testing against the non-`ref` cases provided in the [JSON Schema Test Suite][test-suite]. -## Setup - -Note that this library currently depends on the most recent version of the Everit validator, which -is not published to Maven Central. You'll need to add the [Jitpack][jitpack] resolver to your build: - -```scala -resolvers += "jitpack".at("https://jitpack.io") -``` - -See the [Everit documentation][everit] for the equivalent Maven configuration. - -Once you've configured the resolver, you can add this project to your -dependencies: -```scala -libraryDependencies += "io.circe" %% "circe-json-schema" % "0.1.0" -``` -And the appropriate Everit version will be pulled in transitively. - ## Usage The `io.circe.schema` package contains just two types (`Schema` and `ValidationError`), each of which @@ -128,6 +110,5 @@ limitations under the License. [code-of-conduct]: https://www.scala-lang.org/conduct.html [contributing]: https://circe.github.io/circe/contributing.html [everit]: https://github.com/everit-org/json-schema -[jitpack]: https://jitpack.io/ [json-schema]: https://json-schema.org/ [test-suite]: https://github.com/json-schema-org/JSON-Schema-Test-Suite diff --git a/build.sbt b/build.sbt index fe73e34..7cf8ebf 100644 --- a/build.sbt +++ b/build.sbt @@ -46,7 +46,6 @@ def priorTo2_13(scalaVersion: String): Boolean = } val baseSettings = Seq( - resolvers += "jitpack".at("https://jitpack.io"), scalacOptions ++= compilerOptions, scalacOptions ++= ( if (priorTo2_13(scalaVersion.value)) @@ -87,7 +86,7 @@ lazy val schema = project "io.circe" %% "circe-generic" % circeVersion % Test, "io.circe" %% "circe-jawn" % circeVersion % Test, "io.circe" %% "circe-testing" % circeVersion % Test, - "com.github.everit-org.json-schema" % "org.everit.json.schema" % everitVersion, + "com.github.erosb" % "everit-json-schema" % everitVersion, "org.scalatest" %% "scalatest-flatspec" % "3.2.10" % Test, "org.scalatestplus" %% "scalacheck-1-15" % "3.2.10.0" % Test ),