Skip to content

Commit 1379c91

Browse files
committed
BREAKING CHANGE: upgrade to jdk17, junit5, spring6, springboot3
JIRA:GRIF-315
1 parent d1c3d5e commit 1379c91

File tree

681 files changed

+2840
-1003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

681 files changed

+2840
-1003
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-java@v4
1717
with:
18-
java-version: '11'
18+
java-version: '17'
1919
distribution: 'adopt'
2020
- uses: actions/cache@v4
2121
with:

.sonar.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Settings for sonar scan
2-
gdc.java_version=openjdk-11
2+
gdc.java_version=openjdk-17

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ Since *GoodData Java SDK* version *2.32.0* API versioning is supported. The API
6767
The *GoodData Java SDK* uses:
6868
* the [GoodData HTTP client](https://github.com/gooddata/gooddata-http-client) version 0.9.3 or later
6969
* the *Apache HTTP Client* version 4.5 or later (for white-labeled domains at least version 4.3.2 is required)
70-
* the *Spring Framework* version 5* (can be used with spring 4.3.* as well)
70+
* the *Spring Framework* version 6.x (compatible with Spring Boot 3.x)
7171
* the *Jackson JSON Processor* version 2.*
72-
* the *Slf4j API* version 1.7.*
73-
* the *Java Development Kit (JDK)* version 11 or later to build, can run on 8 and later
72+
* the *Slf4j API* version 2.0.*
73+
* the *Java Development Kit (JDK)* version 17 or later
7474

7575
##### Retry of failed API calls
7676

gooddata-java-model/pom.xml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>gooddata-java-parent</artifactId>
99
<groupId>com.gooddata</groupId>
10-
<version>3.12.1+api3-SNAPSHOT</version>
10+
<version>4.0.0+api3-SNAPSHOT</version>
1111
</parent>
1212

1313
<dependencies>
@@ -42,6 +42,11 @@
4242
<artifactId>mockito-core</artifactId>
4343
<scope>test</scope>
4444
</dependency>
45+
<dependency>
46+
<groupId>org.mockito</groupId>
47+
<artifactId>mockito-junit-jupiter</artifactId>
48+
<scope>test</scope>
49+
</dependency>
4550
<dependency>
4651
<groupId>org.hamcrest</groupId>
4752
<artifactId>hamcrest</artifactId>
@@ -78,7 +83,7 @@
7883
<scope>test</scope>
7984
</dependency>
8085
<dependency>
81-
<groupId>org.codehaus.groovy</groupId>
86+
<groupId>org.apache.groovy</groupId>
8287
<artifactId>groovy</artifactId>
8388
<scope>test</scope>
8489
</dependency>
@@ -92,6 +97,11 @@
9297
<artifactId>spring-web</artifactId>
9398
<scope>test</scope>
9499
</dependency>
100+
<dependency>
101+
<groupId>org.junit.jupiter</groupId>
102+
<artifactId>junit-jupiter-api</artifactId>
103+
<scope>test</scope>
104+
</dependency>
95105
</dependencies>
96106

97107
<build>
@@ -100,6 +110,18 @@
100110
<groupId>org.codehaus.gmavenplus</groupId>
101111
<artifactId>gmavenplus-plugin</artifactId>
102112
</plugin>
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-dependency-plugin</artifactId>
116+
<configuration>
117+
<failOnWarning>false</failOnWarning>
118+
<ignoredUnusedDeclaredDependencies>
119+
<ignoredUnusedDeclaredDependency>com.fasterxml.jackson.core:jackson-core</ignoredUnusedDeclaredDependency>
120+
<ignoredUnusedDeclaredDependency>org.apache.commons:commons-lang3</ignoredUnusedDeclaredDependency>
121+
<ignoredUnusedDeclaredDependency>com.gooddata:gooddata-rest-common</ignoredUnusedDeclaredDependency>
122+
</ignoredUnusedDeclaredDependencies>
123+
</configuration>
124+
</plugin>
103125
</plugins>
104126
</build>
105127

gooddata-java-model/src/main/java/com/gooddata/sdk/model/account/Account.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2023 GoodData Corporation.
2+
* (C) 2025 GoodData Corporation.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
@@ -238,3 +238,4 @@ public enum AuthenticationMode {
238238
SSO
239239
}
240240
}
241+

gooddata-java-model/src/main/java/com/gooddata/sdk/model/account/Accounts.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2023 GoodData Corporation.
2+
* (C) 2025 GoodData Corporation.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
@@ -33,3 +33,4 @@ public class Accounts extends Page<Account> {
3333
super(items, paging, links);
3434
}
3535
}
36+

gooddata-java-model/src/main/java/com/gooddata/sdk/model/account/AccountsDeserializer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2023 GoodData Corporation.
2+
* (C) 2025 GoodData Corporation.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
@@ -22,3 +22,4 @@ protected Accounts createPage(final List<Account> items, final Paging paging, fi
2222
return new Accounts(items, paging, links);
2323
}
2424
}
25+

gooddata-java-model/src/main/java/com/gooddata/sdk/model/account/SeparatorSettings.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2023 GoodData Corporation.
2+
* (C) 2025 GoodData Corporation.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
@@ -74,3 +74,4 @@ public String toString() {
7474
}
7575
}
7676
}
77+

gooddata-java-model/src/main/java/com/gooddata/sdk/model/auditevent/AccessLog.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2023 GoodData Corporation.
2+
* (C) 2025 GoodData Corporation.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
@@ -94,3 +94,4 @@ public String toString() {
9494
return GoodDataToStringBuilder.defaultToString(this);
9595
}
9696
}
97+

gooddata-java-model/src/main/java/com/gooddata/sdk/model/auditevent/AccessLogs.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) 2023 GoodData Corporation.
2+
* (C) 2025 GoodData Corporation.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
@@ -37,3 +37,4 @@ public AccessLogs(List<AccessLog> items, Paging paging, Map<String, String> link
3737
super(items, paging, links);
3838
}
3939
}
40+

0 commit comments

Comments
 (0)