Skip to content

Commit

Permalink
Closes #2131: Migrate to java17
Browse files Browse the repository at this point in the history
  • Loading branch information
arolfes committed Aug 3, 2023
1 parent e501023 commit feb76cb
Show file tree
Hide file tree
Showing 16 changed files with 172 additions and 143 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
cancel-in-progress: true

env:
JAVA_VERSION: 11
JAVA_VERSION: 17
NODE_VERSION: 16.14.2

ARTIFACTS_CYPRESS_TESTS_NAME: cypress-tests
Expand Down
4 changes: 2 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.1/apache-maven-3.9.1-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public String getUserid() {
}

@Override
@SuppressWarnings("removal")
public List<String> getGroupIds() {
// TODO replace with Subject.current() when migrating to newer Version then 17
Subject subject = Subject.getSubject(AccessController.getContext());
LOGGER.trace("Subject of caller: {}", subject);
if (subject != null) {
Expand Down Expand Up @@ -125,7 +127,9 @@ private String getUserIdFromWsSubject() {
return null;
}

@SuppressWarnings("removal")
private String getUserIdFromJaasSubject() {
// TODO replace with Subject.current() when migrating to newer Version then 17
Subject subject = Subject.getSubject(AccessController.getContext());
LOGGER.trace("Subject of caller: {}", subject);
if (subject != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public interface PropertyParser<T> {
new SimpleParser<>(String.class, Function.identity()),
new SimpleParser<>(ZoneId.class, ZoneId::of))
.collect(
Collectors.toUnmodifiableMap(PropertyParser::getTargetClass, Function.identity()));
Collectors.toUnmodifiableMap(PropertyParser::getTargetClass, t -> t));

static PropertyParser<?> getPropertyParser(Class<?> forClass) {
forClass = ReflectionUtil.wrap(forClass);
Expand Down
6 changes: 1 addition & 5 deletions history/taskana-simplehistory-rest-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,7 @@
<doclet>capital.scalable.restdocs.jsondoclet.ExtractDocumentationAsJsonDoclet</doclet>
<docletArtifact>
<groupId>capital.scalable</groupId>
<!--
currently the jdk9+ version of this doclet has a very bad bug.
see: https://github.com/ScaCap/spring-auto-restdocs/issues/412
-->
<artifactId>spring-auto-restdocs-json-doclet</artifactId>
<artifactId>spring-auto-restdocs-json-doclet-jdk9</artifactId>
<version>${version.auto-restdocs}</version>
</docletArtifact>
<destDir>generated-javadoc-json</destDir>
Expand Down
4 changes: 3 additions & 1 deletion lib/taskana-cdi/src/test/resources/arquillian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
name="serverConfig">../../../../src/test/resources/int-test-standalone.xml
</property>
<!-- <property name="javaVmArguments">-->
<!-- -Dh2.bindAddress=127.0.0.1-->
<!-- - -add-opens java.base/java.util=ALL-UNNAMED-->
<!-- -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y-->
<!-- -Dh2.bindAddress=127.0.0.1-->
<!-- -Djava.util.logging.manager=org.jboss.logmanager.LogManager-->
<!-- </property>-->
<property name="javaVmArguments">
--add-opens java.base/java.util=ALL-UNNAMED
-Dh2.bindAddress=127.0.0.1
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
</property>
Expand Down
Loading

0 comments on commit feb76cb

Please sign in to comment.