Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v.2.9.1 (changes in description) #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The recommended way to install it is with Gradle:
}

dependencies {
implementation("com.lacunasoftware.signer:signer-client:2.9.0")
implementation("com.lacunasoftware.signer:signer-client:2.9.1")
...
}

Expand All @@ -22,7 +22,7 @@ Or with Maven:
<dependency>
<groupId>com.lacunasoftware.signer</groupId>
<artifactId>signer-client</artifactId>
<version>2.9.0</version>
<version>2.9.1</version>
<type>pom</type>
</dependency>

Expand Down
32 changes: 27 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ targetCompatibility = JavaVersion.VERSION_1_8

group = 'com.lacunasoftware.signer'
archivesBaseName = 'signer-client'
version = '2.9.0'
version = '2.9.1'

repositories {
mavenCentral()
}

dependencies {
implementation 'io.swagger.core.v3:swagger-annotations:2.1.1'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'com.google.code.gson:gson:2.11.0'
implementation group: 'org.threeten', name: 'threetenbp', version: '1.4.4'

implementation 'com.fasterxml.jackson.core:jackson-core:2.10.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.18.0'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.18.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.0'

implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.12.1'

Expand Down Expand Up @@ -113,3 +113,25 @@ signing {
sign publishing.publications.mavenJava
sign configurations.archives
}

// **New Task for Building a JAR**
task buildJar(type: Jar) {
archiveBaseName.set(archivesBaseName)
archiveVersion.set(version)
from sourceSets.main.output

// Include dependencies in the JAR
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}

manifest {
attributes(
'Main-Class': 'com.lacunasoftware.signer.Main' // Replace with your main class
)
}

// Handle duplicate files gracefully (e.g., LICENSE files)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
4 changes: 1 addition & 3 deletions src/main/java/com/lacunasoftware/signer/ActionStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -45,7 +43,7 @@ public String toString() {
@JsonCreator
public static ActionStatus fromValue(String input) {
for (ActionStatus b : ActionStatus.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/com/lacunasoftware/signer/AgentTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -43,7 +41,7 @@ public String toString() {
@JsonCreator
public static AgentTypes fromValue(String input) {
for (AgentTypes b : AgentTypes.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/com/lacunasoftware/signer/ApiUploadsBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,21 @@

package com.lacunasoftware.signer;

import java.io.File;
import java.util.Objects;
import java.util.Arrays;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.google.gson.annotations.SerializedName;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.File;
/**
* ApiUploadsBody
*/


public class ApiUploadsBody {
@JsonProperty("file")
@SerializedName("file")
private File file = null;

public ApiUploadsBody file(File file) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -51,7 +48,7 @@ public String toString() {
@JsonCreator
public static AuthenticationTypes fromValue(String input) {
for (AuthenticationTypes b : AuthenticationTypes.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
18 changes: 11 additions & 7 deletions src/main/java/com/lacunasoftware/signer/BatchItemResultModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,29 @@
package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.google.gson.annotations.SerializedName;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.UUID;
/**
* BatchItemResultModel
*/


public class BatchItemResultModel {
@JsonProperty("id")
@JsonProperty("id")
@SerializedName("id")

private UUID id = null;
@JsonProperty("success")
@SerializedName("success")

@JsonProperty("success")
private Boolean success = null;
@JsonProperty("errorMessage")
@SerializedName("errorMessage")

@JsonProperty("errorMessage")
private String errorMessage = null;

public BatchItemResultModel id(UUID id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -43,7 +41,7 @@ public String toString() {
@JsonCreator
public static BillingInformationTypes fromValue(String input) {
for (BillingInformationTypes b : BillingInformationTypes.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
12 changes: 7 additions & 5 deletions src/main/java/com/lacunasoftware/signer/Body.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@

package com.lacunasoftware.signer;

import java.io.File;
import java.util.Objects;
import java.util.Arrays;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.google.gson.annotations.SerializedName;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.File;
/**
* Body
*/


public class Body {
@JsonProperty("file")
@JsonProperty("file")
@SerializedName("file")

private File file = null;

public Body file(File file) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -43,7 +41,7 @@ public String toString() {
@JsonCreator
public static CertificateHolderTypes fromValue(String input) {
for (CertificateHolderTypes b : CertificateHolderTypes.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -51,7 +49,7 @@ public String toString() {
@JsonCreator
public static CertificateTypes fromValue(String input) {
for (CertificateTypes b : CertificateTypes.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/com/lacunasoftware/signer/DeleteAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -43,7 +41,7 @@ public String toString() {
@JsonCreator
public static DeleteAction fromValue(String input) {
for (DeleteAction b : DeleteAction.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -47,7 +45,7 @@ public String toString() {
@JsonCreator
public static DocumentDownloadTypes fromValue(String input) {
for (DocumentDownloadTypes b : DocumentDownloadTypes.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -48,7 +46,7 @@ public String toString() {
@JsonCreator
public static DocumentFilterStatus fromValue(String input) {
for (DocumentFilterStatus b : DocumentFilterStatus.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -44,7 +42,7 @@ public String toString() {
@JsonCreator
public static DocumentMarkType fromValue(String input) {
for (DocumentMarkType b : DocumentMarkType.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -46,7 +44,7 @@ public String toString() {
@JsonCreator
public static DocumentQueryTypes fromValue(String input) {
for (DocumentQueryTypes b : DocumentQueryTypes.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/com/lacunasoftware/signer/DocumentStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -47,7 +45,7 @@ public String toString() {
@JsonCreator
public static DocumentStatus fromValue(String input) {
for (DocumentStatus b : DocumentStatus.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

package com.lacunasoftware.signer;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

Expand Down Expand Up @@ -47,7 +45,7 @@ public String toString() {
@JsonCreator
public static DocumentTicketType fromValue(String input) {
for (DocumentTicketType b : DocumentTicketType.values()) {
if (b.value.equals(input)) {
if (b.value.equalsIgnoreCase(input)) {
return b;
}
}
Expand Down
Loading