Skip to content

Commit

Permalink
Update dependencies and fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
slavikm committed Nov 19, 2024
1 parent f24cfbb commit 55b30cb
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Using [maven](https://maven.apache.org) add the following dependency to your pom
<dependency>
<artifactId>java-sdk</artifactId>
<groupId>com.descope</groupId>
<version>1.0</version>
<version>[1.0.0,)</version>
</dependency>
...
</dependencies>
Expand Down
15 changes: 8 additions & 7 deletions examples/management-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,34 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.projectlombok.version>1.18.28</org.projectlombok.version>
<org.projectlombok.version>1.18.36</org.projectlombok.version>
</properties>

<dependencies>
<dependency>
<groupId>com.descope</groupId>
<artifactId>java-sdk</artifactId>
<version>1.0.30</version>
<version>[1.0.0,)</version>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>4.7.4</version>
<version>4.7.6</version>
</dependency>
<dependency>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
<version>2.15.2</version>
<version>2.18.1</version>
</dependency>
<dependency>
<artifactId>jackson-datatype-jsr310</artifactId>
<groupId>com.fasterxml.jackson.datatype</groupId>
<version>2.15.2</version>
<version>2.18.1</version>
</dependency>
<dependency>
<artifactId>commons-lang3</artifactId>
<groupId>org.apache.commons</groupId>
<version>3.12.0</version>
<version>3.17.0</version>
</dependency>

<!-- LOMBOK -->
Expand All @@ -55,7 +55,7 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>3.8.1</version>
<version>3.13.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
Expand All @@ -71,6 +71,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.3.5</version>
<configuration>
<mainClass>com.descope.ManagementCLI</mainClass>
<layout>JAR</layout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.descope.client.DescopeClient;
import com.descope.enums.AuditType;
import com.descope.exception.DescopeException;
import com.descope.model.audit.AuditCreateRequest;
import com.descope.model.audit.AuditSearchRequest;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -36,7 +37,7 @@ public class AuditCreate extends HelpBase implements Callable<Integer> {
public Integer call() throws JsonProcessingException {
int exitCode = 0;
try {
var builder = AuditCreate.builder();
var builder = AuditCreateRequest.builder();
if (StringUtils.isNotBlank(userId)) {
builder.userId(userId);
}
Expand All @@ -50,7 +51,7 @@ public Integer call() throws JsonProcessingException {
builder.action(action);
}
if (StringUtils.isNotBlank(tenant)) {
builder.tenant(tenant);
builder.tenantId(tenant);
}
var client = new DescopeClient();
var auditService = client.getManagementServices().getAuditService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public Integer call() {
.phone(phone)
.verifiedEmail(true)
.verifiedPhone(true)
.invite(false)
.build();
if (test) {
var res = userService.createTestUser(loginId, req);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public Integer call() {
.phone(phone)
.verifiedEmail(true)
.verifiedPhone(true)
.invite(false)
.build();
userService.update(loginId, req);
System.out.printf("User %s updated\n", loginId);
Expand Down
44 changes: 22 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<description>Java library used to integrate with Descope.</description>
<url>https://github.com/descope/descope-java</url>
<properties>
<org.projectlombok.version>1.18.28</org.projectlombok.version>
<org.projectlombok.version>1.18.36</org.projectlombok.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -64,17 +64,17 @@
<dependency>
<artifactId>log4j-api</artifactId>
<groupId>org.apache.logging.log4j</groupId>
<version>2.20.0</version>
<version>2.24.1</version>
</dependency>
<dependency>
<artifactId>log4j-core</artifactId>
<groupId>org.apache.logging.log4j</groupId>
<version>2.20.0</version>
<version>2.24.1</version>
</dependency>
<dependency>
<artifactId>log4j-slf4j-impl</artifactId>
<groupId>org.apache.logging.log4j</groupId>
<version>2.20.0</version>
<version>2.24.1</version>
</dependency>

<!-- DOTENV-->
Expand All @@ -89,7 +89,7 @@
<artifactId>assertj-core</artifactId>
<groupId>org.assertj</groupId>
<scope>test</scope>
<version>3.24.2</version>
<version>3.26.3</version>
</dependency>
<dependency>
<artifactId>junit-jupiter</artifactId>
Expand All @@ -100,44 +100,44 @@
<dependency>
<groupId>org.junit-pioneer</groupId>
<artifactId>junit-pioneer</artifactId>
<version>1.9.1</version>
<version>2.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<artifactId>mockito-junit-jupiter</artifactId>
<groupId>org.mockito</groupId>
<scope>test</scope>
<version>4.11.0</version>
<version>5.14.2</version>
</dependency>
<dependency>
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<groupId>org.mockito</groupId>
<scope>test</scope>
<version>4.11.0</version>
<version>5.14.2</version>
</dependency>
<dependency>
<groupId>uk.org.webcompere</groupId>
<artifactId>system-stubs-core</artifactId>
<version>2.0.2</version>
<version>2.1.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>uk.org.webcompere</groupId>
<artifactId>system-stubs-jupiter</artifactId>
<version>2.0.2</version>
<version>2.1.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.16.0</version>
<version>1.17.1</version>
<scope>test</scope>
</dependency>
<!-- UTILS -->
<dependency>
<artifactId>commons-lang3</artifactId>
<groupId>org.apache.commons</groupId>
<version>3.12.0</version>
<version>3.17.0</version>
</dependency>
<dependency>
<artifactId>commons-collections4</artifactId>
Expand All @@ -147,7 +147,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.14.0</version>
<version>2.17.0</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
Expand All @@ -157,12 +157,12 @@
<dependency>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
<version>2.18.0</version>
<version>2.18.1</version>
</dependency>
<dependency>
<artifactId>jackson-dataformat-yaml</artifactId>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<version>2.18.0</version>
<version>2.18.1</version>
</dependency>
</dependencies>
<build>
Expand Down Expand Up @@ -198,7 +198,7 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>3.11.0</version>
<version>3.13.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
Expand All @@ -222,7 +222,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.2</version>
<configuration>
<archive>
<manifest>
Expand All @@ -234,7 +234,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<version>3.5.2</version>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -262,7 +262,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<version>1.6.14</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
Expand All @@ -273,7 +273,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand Down Expand Up @@ -302,7 +302,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down

0 comments on commit 55b30cb

Please sign in to comment.