Skip to content

Commit

Permalink
[INJIMOb-2712]: Read me updates (#73)
Browse files Browse the repository at this point in the history
* [INJIMOB-2712]: Update read me for integrating with Maven Project

Signed-off-by: BalachandarG <[email protected]>

* [INJIMOB-2712]: Update read me with resolution strategy.

Signed-off-by: BalachandarG <[email protected]>

---------

Signed-off-by: BalachandarG <[email protected]>
  • Loading branch information
balachandarg-tw authored Jan 20, 2025
1 parent 51bdcef commit 86e77c0
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

<dependency>
<groupId>io.mosip</groupId>
<artifactId>vcverifier-jar</artifactId>
<version>{{version-number}}</version>
</dependency>

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.

<dependency>
<groupId>com.android.identity</groupId>
<artifactId>identity-credential</artifactId>
<version>20231002</version>
</dependency>
<dependency>
<groupId>info.weboftrust</groupId>
<artifactId>ld-signatures-java</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>decentralized-identity</groupId>
<artifactId>jsonld-common-java</artifactId>
<version>1.8.0</version>
</dependency>


#### 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.



Expand Down

0 comments on commit 86e77c0

Please sign in to comment.