Skip to content

Commit

Permalink
Merge pull request #120 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-java after onfido-openapi-spec update (01ed1b5)
  • Loading branch information
dvacca-onfido authored Jul 2, 2024
2 parents bca7867 + bb0407e commit 23efa5d
Show file tree
Hide file tree
Showing 11 changed files with 1,339 additions and 15 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: integration-tests
environment: delivery
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_ACTION_ACCESS_TOKEN }}
ref: ${{ github.ref_name }}
repository: ${{ github.repository_owner }}/${{ github.event.repository.name }}
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
Expand All @@ -64,6 +69,8 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Validate release
uses: onfido/onfido-actions/release-check@main
- name: Install gpg secret key
run: |
echo "$GPG_KEY" > key.asc
Expand All @@ -80,3 +87,5 @@ jobs:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Update and commit CHANGELOG.md
uses: onfido/onfido-actions/update-changelog@main
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "a34b6d8",
"long_sha": "a34b6d86714f7f74da2d60a33a76ec3a693d264a",
"version": "v3.0.0"
"short_sha": "01ed1b5",
"long_sha": "01ed1b5fe0f7490bfce54816504a9fec13b33862",
"version": "v3.1.0"
},
"release": "v3.2.0"
"release": "v3.3.0"
}
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This library is only for use on the backend, as it uses Onfido API tokens which

This version uses Onfido API v3.6. Refer to our [API versioning guide](https://developers.onfido.com/guide/api-versioning-policy#client-libraries) for details of which client library versions use which versions of the API.

![Build Status](https://github.com/onfido/onfido-java/actions/workflows/maven.yml/badge.svg)

## Installation & Usage

### Requirements
Expand Down Expand Up @@ -41,7 +43,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.onfido</groupId>
<artifactId>onfido-api-java</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -57,7 +59,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "com.onfido:onfido-api-java:3.2.0"
implementation "com.onfido:onfido-api-java:3.3.0"
}
```

Expand All @@ -71,10 +73,10 @@ mvn clean package

Then manually install the following JARs:

- `target/onfido-api-java-3.2.0.jar`
- `target/onfido-api-java-3.3.0.jar`
- `target/lib/*.jar`

The latest version can be found at: https://search.maven.org/artifact/com.onfido/3.2.0
The latest version can be found at: https://search.maven.org/artifact/com.onfido/3.3.0

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'com.onfido'
version = '3.2.0'
version = '3.3.0'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.onfido",
name := "onfido-api-java",
version := "3.2.0",
version := "3.3.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>onfido-api-java</artifactId>
<packaging>jar</packaging>
<name>onfido-api-java</name>
<version>3.2.0</version>
<version>3.3.0</version>
<url>https://documentation.onfido.com</url>
<description>Official Java API client library for the Onfido API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/onfido/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("onfido-java/3.2.0");
setUserAgent("onfido-java/3.3.0");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/onfido/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
public class Configuration {
public static final String VERSION = "3.2.0";
public static final String VERSION = "3.3.0";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
Loading

0 comments on commit 23efa5d

Please sign in to comment.