Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depend on everit-json-schema from Maven Central instead of JitPack #157

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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.11" % Test,
"org.scalatestplus" %% "scalacheck-1-15" % "3.2.11.0" % Test
),
Expand Down