Skip to content

Commit

Permalink
dropping support for JDK 11, midPoint language level is now 17
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Jun 28, 2022
1 parent e34d90f commit 9a28002
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 91 deletions.
15 changes: 1 addition & 14 deletions dist/javadoc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<maven.install.skip>true</maven.install.skip>
<!-- This enables build without -DskipTests option (e.g. full build). -->
<maven.test.skip>true</maven.test.skip>
<!-- Profile for JDK11 sets additional javadocs options for java 11 (which are removed in java 13+). -->
<javadoc.options></javadoc.options>
</properties>

Expand Down Expand Up @@ -75,7 +74,7 @@
<debug>false</debug>

<!--
TODO: Not usable yet, see https://github.com/asciidoctor/asciidoclet/pull/96 for the progress on JDK 11 support.
TODO: Not usable yet, see https://github.com/asciidoctor/asciidoclet/pull/96 for the progress on JDK 11+ support.
Currently fails on:
[ERROR] javadoc: error - invalid flag: -author
Expand Down Expand Up @@ -117,16 +116,4 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>active-on-jdk-11</id>
<activation>
<jdk>11</jdk>
</activation>
<properties>
<javadoc.options>--no-module-directories</javadoc.options>
</properties>
</profile>
</profiles>
</project>
14 changes: 1 addition & 13 deletions dist/midpoint-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

<properties>
<maven.test.skip>true</maven.test.skip>
<!-- Profile for JDK11 sets additional javadocs options for java 11 (which are removed in java 13+). -->
<javadoc.options></javadoc.options>
</properties>

Expand Down Expand Up @@ -93,7 +92,7 @@
<additionalJOption>${javadoc.options}</additionalJOption>

<!--
TODO: Not usable yet, see https://github.com/asciidoctor/asciidoclet/pull/96 for the progress on JDK 11 support.
TODO: Not usable yet, see https://github.com/asciidoctor/asciidoclet/pull/96 for the progress on JDK 11+ support.
Currently fails on:
[ERROR] javadoc: error - invalid flag: -author
Expand Down Expand Up @@ -129,15 +128,4 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>active-on-jdk-11</id>
<activation>
<jdk>11</jdk>
</activation>
<properties>
<javadoc.options>--no-module-directories</javadoc.options>
</properties>
</profile>
</profiles>
</project>
3 changes: 1 addition & 2 deletions infra/schema-pure-jaxb/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
~ Copyright (c) 2010-2017 Evolveum and contributors
~ Copyright (C) 2010-2022 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
Expand Down Expand Up @@ -100,7 +100,6 @@
<catalog>${basedir}/src/compile/resources/catalog.xml</catalog>
<laxSchemaValidation>true</laxSchemaValidation>
<verbose>false</verbose>
<!-- JDK 11 does not need exclusions of imported files like JDK 8 -->
</configuration>
<dependencies>
<!--
Expand Down
87 changes: 40 additions & 47 deletions model/model-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,53 +154,46 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<!--
JavaScript/ECMAScript is optional in JDK 15+.
If desired the JAR from this dependency can be provided in ${midpoint.home}/lib.
For more see: https://docs.evolveum.com/midpoint/reference/expressions/expressions/script/javascript/
-->
<dependency>
<groupId>org.openjdk.nashorn</groupId>
<artifactId>nashorn-core</artifactId>
<version>15.3</version>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<!--
JavaScript/ECMAScript is optional. It is not provided with newer JDKs or distributed with midPoint.
If desired the JAR from this dependency can be provided in ${midpoint.home}/lib.
For more see: https://docs.evolveum.com/midpoint/reference/expressions/expressions/script/javascript/
-->
<id>javascript</id>
<activation>
<jdk>[15,)</jdk>
</activation>
<dependencyManagement>
<dependencies>
<!-- This one is needed by GUI too, so midPoint brings it in. -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<!-- The rest must be provided in midpoint.home manually if we want JavaScript/ECMAScript. -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>${asm.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.openjdk.nashorn</groupId>
<artifactId>nashorn-core</artifactId>
<version>15.3</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<!-- For JavaScript test dependency only, that's why it's not in main POM. -->
<dependencyManagement>
<dependencies>
<!-- This one is needed by GUI too, so midPoint brings it in. -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<!-- The rest must be provided in midpoint.home manually if we want JavaScript/ECMAScript. -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>${asm.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

</project>
10 changes: 2 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<!-- Build system options -->
<!-- Encoding for both sources and resources -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.source.version>11</project.source.version>
<project.source.version>17</project.source.version>
<project.build.locale>en_US</project.build.locale>
<ansi.color>true</ansi.color>
<verbose.jaxb2>false</verbose.jaxb2>
Expand Down Expand Up @@ -1797,12 +1797,6 @@
</configuration>
</plugin>

<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>3.0.1</version>
<!-- Used in system-init module. -->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down Expand Up @@ -2034,7 +2028,7 @@
<pluginExecutionFilter>
<groupId>com.lukegb.mojo</groupId>
<artifactId>gitdescribe-maven-plugin</artifactId>
<versionRange>[3.0,)</versionRange>
<versionRange>3.0</versionRange>
<goals>
<goal>gitdescribe</goal>
</goals>
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/midpoint-compile-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ podTemplate(
resourceRequestMemory: '1Gi',
resourceLimitMemory: '1Gi'),
containerTemplate(name: 'maven',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-11',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-17',
runAsUser: '0',
ttyEnabled: true,
command: 'cat',
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/midpoint-conntest-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
resourceRequestCpu: '900m',
resourceRequestMemory: '1Gi'),
containerTemplate(name: 'maven',
image: 'maven:3.8.5-openjdk-11',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-17',
runAsUser: '0',
ttyEnabled: true,
command: 'cat',
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/midpoint-main-generic-pg-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ podTemplate(
],
ports: [portMapping(name: 'postgres', containerPort: 5432)]),
containerTemplate(name: 'maven',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-11',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-17',
runAsUser: '0',
ttyEnabled: true,
command: 'cat',
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/midpoint-main-generic-sql-server-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ podTemplate(
// TODO needed? ports: [portMapping(name: 'mssql', containerPort: 5432)]
),
containerTemplate(name: 'maven',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-11',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-17',
runAsUser: '0',
ttyEnabled: true,
command: 'cat',
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/midpoint-main-nativepg-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ podTemplate(
],
ports: [portMapping(name: 'postgres', containerPort: 5432)]),
containerTemplate(name: 'maven',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-11',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-17',
runAsUser: '0',
ttyEnabled: true,
command: 'cat',
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/midpoint-main-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ podTemplate(
resourceRequestMemory: '1Gi',
resourceLimitMemory: '1Gi'),
containerTemplate(name: 'maven',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-11',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-17',
runAsUser: '0',
ttyEnabled: true,
command: 'cat',
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/midpoint-quick-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ podTemplate(
resourceRequestMemory: '1Gi',
resourceLimitMemory: '1Gi'),
containerTemplate(name: 'maven',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-11',
image: params.BUILDER_IMAGE ?: 'maven:3.8.5-openjdk-17',
runAsUser: '0',
ttyEnabled: true,
command: 'cat',
Expand Down

0 comments on commit 9a28002

Please sign in to comment.