Skip to content

Commit

Permalink
Merge pull request #43 from filip26/release/v0.0.7
Browse files Browse the repository at this point in the history
Add codec to VerificationMethod
  • Loading branch information
filip26 authored Nov 24, 2023
2 parents 6054051 + 91ac41d commit d8319a7
Showing 11 changed files with 236 additions and 406 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/java17-build.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/java8-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Android (Java 8) CI
name: Java 8 CI

on:
pull_request:
@@ -19,4 +19,4 @@ jobs:
with:
java-version: 1.8
- name: Build with Maven
run: mvn -f pom_jre8.xml package
run: mvn -f pom.xml package
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Carbon DID
An implementation of the [Decentralized Identifiers (DIDs) v1.0](https://www.w3.org/TR/did-core/) in Java.

[![Java 17 CI](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java17-build.yml/badge.svg)](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java17-build.yml)
[![Android (Java 8) CI](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java8-build.yml/badge.svg)](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java8-build.yml)

[![Java 8 CI](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java8-build.yml/badge.svg)](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java8-build.yml)
[![Maven Central](https://img.shields.io/maven-central/v/com.apicatalog/carbon-did.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:com.apicatalog%20AND%20a:carbon-did)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

@@ -17,22 +17,20 @@ An implementation of the [Decentralized Identifiers (DIDs) v1.0](https://www.w3.

#### Maven

Java 17+

```xml
<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>carbon-did</artifactId>
<version>0.0.3</version>
<version>0.0.7</version>
</dependency>

```

#### Gradle
Java 8+, Android API Level >=24
Android API Level >=24

```gradle
implementation("com.apicatalog:carbon-did-jre8:0.0.3")
implementation("com.apicatalog:carbon-did:0.0.7")
```


253 changes: 218 additions & 35 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,38 +1,221 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.apicatalog</groupId>
<artifactId>carbon</artifactId>
<version>0.0.7</version>
<relativePath>pom_parent.xml</relativePath>
</parent>
<artifactId>carbon-did</artifactId>
<packaging>jar</packaging>
<name>Carbon DIDs (JRE17)</name>
<url>https://github.com/filip26/carbon-decentralized-identifiers</url>
<scm>
<connection>
scm:git:git://github.com/filip26/carbon-decentralized-identifiers.git</connection>
<developerConnection>
scm:git:git://github.com/filip26/carbon-decentralized-identifiers.git</developerConnection>
<url>
https://github.com/filip26/carbon-decentralized-identifiers/tree/main</url>
</scm>
<properties>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<envSources>src/main/java17</envSources>
</properties>
<dependencies>
<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>titanium-json-ld</artifactId>
<version>${titanium.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>com.apicatalog</groupId>
<artifactId>carbon-did</artifactId>

<version>0.0.7</version>
<packaging>jar</packaging>

<url>https://github.com/filip26/carbon-decentralized-identifiers</url>
<scm>
<connection>scm:git:git://github.com/filip26/carbon-decentralized-identifiers.git</connection>
<developerConnection>scm:git:git://github.com/filip26/carbon-decentralized-identifiers.git</developerConnection>
<url>https://github.com/filip26/carbon-decentralized-identifiers/tree/main</url>
</scm>

<name>Carbon DIDs</name>

<description>
Decentralized Identifiers (DIDs) API
</description>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>

<issueManagement>
<system>github</system>
<url>https://github.com/filip26/carbon-decentralized-identifiers/issues</url>
</issueManagement>

<developers>
<developer>
<id>filip26</id>
<name>Filip Kolarik</name>
<email>filip26@gmail.com</email>
<roles>
<role>author</role>
</roles>
</developer>
</developers>

<inceptionYear>2022</inceptionYear>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<argLine>-Dfile.encoding=UTF-8</argLine>

<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>

<jakarta.json.version>2.0.1</jakarta.json.version>

<copper.multicodec.version>0.0.6</copper.multicodec.version>
<copper.multibase.version>0.0.1</copper.multibase.version>

<!-- test resources -->
<junit.version>5.10.1</junit.version>
<titanium.version>1.3.3</titanium.version>
</properties>
<dependencies>
<dependency>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
<version>${jakarta.json.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>copper-multicodec</artifactId>
<version>${copper.multicodec.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>copper-multibase</artifactId>
<version>${copper.multibase.version}</version>
<scope>provided</scope>
</dependency>

<!-- Tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.json</artifactId>
<version>${jakarta.json.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>titanium-json-ld-jre8</artifactId>
<version>${titanium.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<doclint>all,-missing</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.2.2</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>maven-central</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles>
</project>
34 changes: 0 additions & 34 deletions pom_jre8.xml

This file was deleted.

Loading

0 comments on commit d8319a7

Please sign in to comment.