Skip to content

Commit 55f44e1

Browse files
authored
Update dependencies and fix README (#144)
* Update dependencies and fix README * Keep mockito older because of Java8 * Keep system-stubs older because of Java8 * Keep junit-pioneer older because of Java8 * bump version
1 parent f24cfbb commit 55f44e1

6 files changed

Lines changed: 31 additions & 31 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Using [maven](https://maven.apache.org) add the following dependency to your pom
1919
<dependency>
2020
<artifactId>java-sdk</artifactId>
2121
<groupId>com.descope</groupId>
22-
<version>1.0</version>
22+
<version>[1.0.0,)</version>
2323
</dependency>
2424
...
2525
</dependencies>

examples/management-cli/pom.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,34 @@
1212
<maven.compiler.source>17</maven.compiler.source>
1313
<maven.compiler.target>17</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
<org.projectlombok.version>1.18.28</org.projectlombok.version>
15+
<org.projectlombok.version>1.18.36</org.projectlombok.version>
1616
</properties>
1717

1818
<dependencies>
1919
<dependency>
2020
<groupId>com.descope</groupId>
2121
<artifactId>java-sdk</artifactId>
22-
<version>1.0.30</version>
22+
<version>[1.0.0,)</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>info.picocli</groupId>
2626
<artifactId>picocli</artifactId>
27-
<version>4.7.4</version>
27+
<version>4.7.6</version>
2828
</dependency>
2929
<dependency>
3030
<artifactId>jackson-databind</artifactId>
3131
<groupId>com.fasterxml.jackson.core</groupId>
32-
<version>2.15.2</version>
32+
<version>2.18.1</version>
3333
</dependency>
3434
<dependency>
3535
<artifactId>jackson-datatype-jsr310</artifactId>
3636
<groupId>com.fasterxml.jackson.datatype</groupId>
37-
<version>2.15.2</version>
37+
<version>2.18.1</version>
3838
</dependency>
3939
<dependency>
4040
<artifactId>commons-lang3</artifactId>
4141
<groupId>org.apache.commons</groupId>
42-
<version>3.12.0</version>
42+
<version>3.17.0</version>
4343
</dependency>
4444

4545
<!-- LOMBOK -->
@@ -55,7 +55,7 @@
5555
<plugin>
5656
<artifactId>maven-compiler-plugin</artifactId>
5757
<groupId>org.apache.maven.plugins</groupId>
58-
<version>3.8.1</version>
58+
<version>3.13.0</version>
5959
<configuration>
6060
<source>${maven.compiler.source}</source>
6161
<target>${maven.compiler.target}</target>
@@ -71,6 +71,7 @@
7171
<plugin>
7272
<groupId>org.springframework.boot</groupId>
7373
<artifactId>spring-boot-maven-plugin</artifactId>
74+
<version>3.3.5</version>
7475
<configuration>
7576
<mainClass>com.descope.ManagementCLI</mainClass>
7677
<layout>JAR</layout>

examples/management-cli/src/main/java/com/descope/AuditCreate.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.descope.client.DescopeClient;
44
import com.descope.enums.AuditType;
55
import com.descope.exception.DescopeException;
6+
import com.descope.model.audit.AuditCreateRequest;
67
import com.descope.model.audit.AuditSearchRequest;
78
import com.fasterxml.jackson.core.JsonProcessingException;
89
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -36,7 +37,7 @@ public class AuditCreate extends HelpBase implements Callable<Integer> {
3637
public Integer call() throws JsonProcessingException {
3738
int exitCode = 0;
3839
try {
39-
var builder = AuditCreate.builder();
40+
var builder = AuditCreateRequest.builder();
4041
if (StringUtils.isNotBlank(userId)) {
4142
builder.userId(userId);
4243
}
@@ -50,7 +51,7 @@ public Integer call() throws JsonProcessingException {
5051
builder.action(action);
5152
}
5253
if (StringUtils.isNotBlank(tenant)) {
53-
builder.tenant(tenant);
54+
builder.tenantId(tenant);
5455
}
5556
var client = new DescopeClient();
5657
var auditService = client.getManagementServices().getAuditService();

examples/management-cli/src/main/java/com/descope/UserCreate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public Integer call() {
2525
.phone(phone)
2626
.verifiedEmail(true)
2727
.verifiedPhone(true)
28-
.invite(false)
2928
.build();
3029
if (test) {
3130
var res = userService.createTestUser(loginId, req);

examples/management-cli/src/main/java/com/descope/UserUpdate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public Integer call() {
2121
.phone(phone)
2222
.verifiedEmail(true)
2323
.verifiedPhone(true)
24-
.invite(false)
2524
.build();
2625
userService.update(loginId, req);
2726
System.out.printf("User %s updated\n", loginId);

pom.xml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<groupId>com.descope</groupId>
55
<artifactId>java-sdk</artifactId>
66
<modelVersion>4.0.0</modelVersion>
7-
<version>1.0.30</version>
7+
<version>1.0.31</version>
88
<name>${project.groupId}:${project.artifactId}</name>
99
<description>Java library used to integrate with Descope.</description>
1010
<url>https://github.com/descope/descope-java</url>
1111
<properties>
12-
<org.projectlombok.version>1.18.28</org.projectlombok.version>
12+
<org.projectlombok.version>1.18.36</org.projectlombok.version>
1313
<maven.compiler.source>1.8</maven.compiler.source>
1414
<maven.compiler.target>1.8</maven.compiler.target>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -64,17 +64,17 @@
6464
<dependency>
6565
<artifactId>log4j-api</artifactId>
6666
<groupId>org.apache.logging.log4j</groupId>
67-
<version>2.20.0</version>
67+
<version>2.24.1</version>
6868
</dependency>
6969
<dependency>
7070
<artifactId>log4j-core</artifactId>
7171
<groupId>org.apache.logging.log4j</groupId>
72-
<version>2.20.0</version>
72+
<version>2.24.1</version>
7373
</dependency>
7474
<dependency>
7575
<artifactId>log4j-slf4j-impl</artifactId>
7676
<groupId>org.apache.logging.log4j</groupId>
77-
<version>2.20.0</version>
77+
<version>2.24.1</version>
7878
</dependency>
7979

8080
<!-- DOTENV-->
@@ -89,7 +89,7 @@
8989
<artifactId>assertj-core</artifactId>
9090
<groupId>org.assertj</groupId>
9191
<scope>test</scope>
92-
<version>3.24.2</version>
92+
<version>3.26.3</version>
9393
</dependency>
9494
<dependency>
9595
<artifactId>junit-jupiter</artifactId>
@@ -118,26 +118,26 @@
118118
<dependency>
119119
<groupId>uk.org.webcompere</groupId>
120120
<artifactId>system-stubs-core</artifactId>
121-
<version>2.0.2</version>
121+
<version>2.0.3</version>
122122
<scope>test</scope>
123123
</dependency>
124124
<dependency>
125125
<groupId>uk.org.webcompere</groupId>
126126
<artifactId>system-stubs-jupiter</artifactId>
127-
<version>2.0.2</version>
127+
<version>2.0.3</version>
128128
<scope>test</scope>
129129
</dependency>
130130
<dependency>
131131
<groupId>commons-codec</groupId>
132132
<artifactId>commons-codec</artifactId>
133-
<version>1.16.0</version>
133+
<version>1.17.1</version>
134134
<scope>test</scope>
135135
</dependency>
136136
<!-- UTILS -->
137137
<dependency>
138138
<artifactId>commons-lang3</artifactId>
139139
<groupId>org.apache.commons</groupId>
140-
<version>3.12.0</version>
140+
<version>3.17.0</version>
141141
</dependency>
142142
<dependency>
143143
<artifactId>commons-collections4</artifactId>
@@ -147,7 +147,7 @@
147147
<dependency>
148148
<groupId>commons-io</groupId>
149149
<artifactId>commons-io</artifactId>
150-
<version>2.14.0</version>
150+
<version>2.17.0</version>
151151
</dependency>
152152
<dependency>
153153
<groupId>org.apache.httpcomponents.client5</groupId>
@@ -157,12 +157,12 @@
157157
<dependency>
158158
<artifactId>jackson-databind</artifactId>
159159
<groupId>com.fasterxml.jackson.core</groupId>
160-
<version>2.18.0</version>
160+
<version>2.18.1</version>
161161
</dependency>
162162
<dependency>
163163
<artifactId>jackson-dataformat-yaml</artifactId>
164164
<groupId>com.fasterxml.jackson.dataformat</groupId>
165-
<version>2.18.0</version>
165+
<version>2.18.1</version>
166166
</dependency>
167167
</dependencies>
168168
<build>
@@ -198,7 +198,7 @@
198198
<plugin>
199199
<artifactId>maven-compiler-plugin</artifactId>
200200
<groupId>org.apache.maven.plugins</groupId>
201-
<version>3.11.0</version>
201+
<version>3.13.0</version>
202202
<configuration>
203203
<source>${maven.compiler.source}</source>
204204
<target>${maven.compiler.target}</target>
@@ -222,7 +222,7 @@
222222
<plugin>
223223
<groupId>org.apache.maven.plugins</groupId>
224224
<artifactId>maven-jar-plugin</artifactId>
225-
<version>3.3.0</version>
225+
<version>3.4.2</version>
226226
<configuration>
227227
<archive>
228228
<manifest>
@@ -234,7 +234,7 @@
234234
<plugin>
235235
<groupId>org.apache.maven.plugins</groupId>
236236
<artifactId>maven-surefire-plugin</artifactId>
237-
<version>3.1.2</version>
237+
<version>3.5.2</version>
238238
</plugin>
239239
</plugins>
240240
</build>
@@ -262,7 +262,7 @@
262262
<plugin>
263263
<groupId>org.sonatype.plugins</groupId>
264264
<artifactId>nexus-staging-maven-plugin</artifactId>
265-
<version>1.6.13</version>
265+
<version>1.6.14</version>
266266
<extensions>true</extensions>
267267
<configuration>
268268
<serverId>ossrh</serverId>
@@ -273,7 +273,7 @@
273273
<plugin>
274274
<groupId>org.apache.maven.plugins</groupId>
275275
<artifactId>maven-source-plugin</artifactId>
276-
<version>3.3.0</version>
276+
<version>3.3.1</version>
277277
<executions>
278278
<execution>
279279
<id>attach-sources</id>
@@ -302,7 +302,7 @@
302302
<plugin>
303303
<groupId>org.apache.maven.plugins</groupId>
304304
<artifactId>maven-gpg-plugin</artifactId>
305-
<version>3.1.0</version>
305+
<version>3.2.7</version>
306306
<executions>
307307
<execution>
308308
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)