Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making the code build with Java 11 #247

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/gui/core/plugin/mapsui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>

<plugin>
Expand Down
4 changes: 0 additions & 4 deletions src/gui/core/plugin/userui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.5</source>
<target>1.6</target>
</configuration>
</plugin>

<plugin>
Expand Down
10 changes: 1 addition & 9 deletions src/gui/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,7 @@
<pluginManagement>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>utf8</encoding>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
11 changes: 0 additions & 11 deletions src/gui/core/resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,6 @@
</execution>
</executions>
</plugin>

<!-- tell the compiler we can use 1.5 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<properties>
<module.name>geofence-gui</module.name>
<geofence-version>3.6-SNAPSHOT</geofence-version>
<gt-version>21.4</gt-version>
<gt-version>29.2</gt-version>
<geogwt-version>0.4-SNAPSHOT</geogwt-version>

<spring.version>4.2.5.RELEASE</spring.version>
Expand Down
7 changes: 6 additions & 1 deletion src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<packaging>pom</packaging>

<properties>
<!-- Building with Java 11, but with Java 8 compatible jars,
to have some mercy on the old java bytecode processing libraries
used in GeoFence -->
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<geofence-version>3.6-SNAPSHOT</geofence-version>
<hibernate-version>3.6.9.Final</hibernate-version>
<hibernate-generic-dao-version>1.1.0</hibernate-generic-dao-version>
Expand Down Expand Up @@ -127,7 +132,7 @@

<modules>
<module>services</module>
<module>gui</module>
<!--module>gui</module-->
</modules>

<build>
Expand Down
9 changes: 9 additions & 0 deletions src/services/core/model-external/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
<artifactId>jts-core</artifactId>
</dependency>

<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
10 changes: 8 additions & 2 deletions src/services/core/model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@
</exclusion>
</exclusions>
</dependency>


<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
Expand Down
13 changes: 0 additions & 13 deletions src/services/core/webtest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@
<!-- =============================================================== -->
<!-- CXF -->
<!-- =============================================================== -->
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
</dependency>
<!-- <dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-bindings-http</artifactId>
Expand Down Expand Up @@ -242,15 +238,6 @@
<finalName>geofence-web-test</finalName>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>utf8</encoding>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
13 changes: 4 additions & 9 deletions src/services/modules/generic-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,14 @@
<version>1.0-alpha-4</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>jakarta.xml.ws</groupId>
<artifactId>jakarta.xml.ws-api</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<!-- Attach sources ============================================ -->
<plugin>
<inherited>true</inherited>
Expand Down
19 changes: 10 additions & 9 deletions src/services/modules/ldap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@
<version>1.5.5</version>
<scope>test</scope>
</dependency>
<!-- This is needed for the server to start, yes, with a different
version compared to the other bits, horrible but working, see
https://github.com/spring-projects/spring-security/issues/6804#issuecomment-572568328
-->
<dependency>
<groupId>org.apache.directory.server</groupId>
<artifactId>apacheds-core-avl</artifactId>
<version>1.5.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.directory.shared</groupId>
<artifactId>shared-ldap</artifactId>
Expand Down Expand Up @@ -143,15 +153,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<!-- Attach sources ============================================ -->
<plugin>
<inherited>true</inherited>
Expand Down
13 changes: 5 additions & 8 deletions src/services/modules/login/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,15 @@
<version>1.0-alpha-4</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>jakarta.jws</groupId>
<artifactId>jakarta.jws-api</artifactId>
<version>2.1.0</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<!-- Attach sources ============================================ -->
<plugin>
Expand Down
17 changes: 6 additions & 11 deletions src/services/modules/login/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
<artifactId>cxf-core</artifactId>
</dependency>

<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>1.3.5</version>
</dependency>


<!-- =============================================================== -->
<!-- JUnit -->
Expand All @@ -89,17 +95,6 @@
</includes>
</resource>
</resources>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

</project>
9 changes: 0 additions & 9 deletions src/services/modules/rest/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<!-- Attach sources ============================================ -->
<!--
<plugin>
Expand Down
9 changes: 0 additions & 9 deletions src/services/modules/rest/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<!-- Attach sources ============================================ -->

<plugin>
Expand Down
13 changes: 5 additions & 8 deletions src/services/modules/rest/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
<!-- Misc support libs -->
<!-- ================================================================-->

<dependency>
<groupId>jakarta.xml.ws</groupId>
<artifactId>jakarta.xml.ws-api</artifactId>
</dependency>

<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
Expand Down Expand Up @@ -149,14 +154,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<!-- Attach sources ============================================ -->
<!--
Expand Down
13 changes: 0 additions & 13 deletions src/services/modules/rest/test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@
<!-- =============================================================== -->
<!-- CXF -->
<!-- =============================================================== -->
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
</dependency>
<!-- <dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-bindings-http</artifactId>
Expand Down Expand Up @@ -274,15 +270,6 @@
<build>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>utf8</encoding>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Loading