diff --git a/README.md b/README.md index b7032b8..0162979 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,57 @@ - **utils** - It helper classes and methods that provide reusable and general-purpose functionalities across the project. - **CredentialVerifier.kt** - The `CredentialVerifier.kt` file serves as the main entry point to the VC Verifier Library. This class provides the primary interface for interacting with the library and encapsulates all the core functionalities related to validating and verifying Verifiable Credentials (VCs). +#### Integrating jar to Maven Project + + +##### Add Vc-Verifier in `pom.xml` + + + io.mosip + vcverifier-jar + {{version-number}} + + +To integrate **vc-verifier** library into a Maven project , include below additional dependencies that are not managed via the `pom.xml` file of vc-verifier library. + + + com.android.identity + identity-credential + 20231002 + + + info.weboftrust + ld-signatures-java + 1.5.0 + + + decentralized-identity + jsonld-common-java + 1.8.0 + + + +#### Integrating aar to Gradle Project + +To integrate **vc-verifier** library into a Gradle project , add below line in module level `build.gradle`. + + dependencies { + implementation("io.mosip:vc-verifier:{{version-number}}") + } + +To avoid Duplicate classes error while building the application, include the below exclusion strategy in the build.gradle file. + + configurations.all { + resolutionStrategy { + exclude(module = "bcprov-jdk15to18") + exclude(module = "bcutil-jdk18on") + exclude(module = "bcprov-jdk15on") + exclude(module = "bcutil-jdk15on") + exclude(module = "titanium-json-ld") + } + } + +**Note**: `version-number` should be replaced with the actual version of the library from Maven Central.