Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.java-json-tools:json-schema-core:1.2.14'
}
dependencies {
implementation("com.github.java-json-tools:json-schema-core:1.2.14")
}
<dependency>
<groupId>com.github.java-json-tools</groupId>
<artifactId>json-schema-core</artifactId>
<version>1.2.14</version>
</dependency>
libraryDependencies += "com.github.java-json-tools" % "json-schema-core" % "1.2.14"
:dependencies [[com.github.java-json-tools/json-schema-core "1.2.14"]]
The license of this project is dual licensed LGPLv3 or later/ASL 2.0. See file LICENSE for more
details. The full text of both licensed is included in the package.
This package contains the core mechanics of json-schema-validator library. It also provides a comprehensive infrastructure to build processing chains for anything you can think of, really. To this effect, this package can be used, for instance, to perform the following, provided you use the appropriate software packages:
You can see sample usages of this library in a separate project which is demonstrated online. More details on this library can be found here.
This library supports Draft 03 and Draft 04. Contribution of support for Draft 05 (issue #61), Draft 06 (issue #62), or Draft 07 (issue #63) would be gratefully accepted.
The current stable verson is 1.2.14 (ChangeLog, Javadoc).
The old verson is 1.0.4 (ChangeLog, Javadoc).
See here for the major changes between 1.0.x and 1.2.x.
For gradle, use:
dependencies {
compile(group: "com.github.java-json-tools", name: "json-schema-core", version: "1.2.14");
}
For maven:
<dependency>
<groupId>com.github.java-json-tools</groupId>
<artifactId>json-schema-core</artifactId>
<version>1.2.14</version>
</dependency>
OBSOLETE You can also get the jars from Bintray.
The versioning scheme is defined by the middle digit of the version number: