Skip to content

Commit

Permalink
Merge branch 'develop' into bug-fixes-2024-2-14
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob6838 committed Feb 21, 2024
2 parents 7cbcf5f + 5da7db2 commit 7da5e7b
Show file tree
Hide file tree
Showing 24 changed files with 729 additions and 210 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3.8.1-openjdk-11 as builder
FROM maven:3.8-eclipse-temurin-21-alpine as builder

WORKDIR /home

Expand Down Expand Up @@ -38,7 +38,7 @@ WORKDIR /home/jpo-conflictvisualizer-api

RUN mvn clean package -DskipTests
# ENTRYPOINT ["tail", "-f", "/dev/null"]
FROM openjdk:11-jre
FROM eclipse-temurin:21-jre-alpine

WORKDIR /home

Expand Down
2 changes: 1 addition & 1 deletion jpo-conflictmonitor
Submodule jpo-conflictmonitor updated from e1087f to 3b6020
58 changes: 35 additions & 23 deletions jpo-conflictvisualizer-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.8</version>
<version>3.1.3</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>usdot.jpo.ode</groupId>
Expand All @@ -15,7 +15,7 @@
<name>jpo-conflictvisualizer-api</name>
<description>Conflict Visualizer</description>
<properties>
<java.version>11</java.version>
<java.version>21</java.version>
<!-- <thymeleaf.version>3.0.3.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.2.1</thymeleaf-layout-dialect.version> -->
</properties>
Expand Down Expand Up @@ -48,7 +48,7 @@
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.14.2</version>
<version>2.15.2</version>
<exclusions>
<exclusion>
<groupId>javax.ws.rs</groupId>
Expand All @@ -67,7 +67,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.24</version>
<version>1.18.30</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -87,7 +87,7 @@
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-ode-core</artifactId>
<version>1.3.0</version>
<version>1.6.0-SNAPSHOT</version>
<!-- required exclusion to preserve keycloak versions -->
<exclusions>
<exclusion>
Expand All @@ -99,29 +99,29 @@
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-ode-plugins</artifactId>
<version>1.3.0</version>
<version>1.6.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-geojsonconverter</artifactId>
<version>1.0.0</version>
<version>1.2.0-SNAPSHOT</version>
<classifier>jpo-geojsonconverter</classifier>
</dependency>
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-conflictmonitor</artifactId>
<version>1.0.0</version>
<version>1.2.0-SNAPSHOT</version>
<classifier>jpo-conflictmonitor</classifier>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
<version>3.14.0</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.14</version>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -142,15 +142,23 @@
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-spring-boot-starter</artifactId>
<version>21.0.2</version>
<!-- <version>20.0.3</version> -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.keycloak</groupId>-->
<!-- <artifactId>keycloak-spring-boot-starter</artifactId>-->
<!-- <version>21.0.2</version>-->
<!-- &lt;!&ndash; <version>20.0.3</version> &ndash;&gt;-->
<!-- </dependency>-->
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-admin-client</artifactId>
<version>21.0.2</version>
<version>23.0.6</version>
<!-- <version>20.0.3</version> -->
</dependency>
<dependency>
Expand All @@ -169,17 +177,17 @@
<dependency>
<groupId>org.xhtmlrenderer</groupId>
<artifactId>flying-saucer-pdf</artifactId>
<version>9.1.20</version>
<version>9.5.1</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
<version>5.5.13</version>
<version>5.5.13.3</version>
</dependency>
<dependency>
<groupId>org.knowm.xchart</groupId>
<artifactId>xchart</artifactId>
<version>3.8.3</version>
<version>3.8.7</version>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
Expand All @@ -190,13 +198,13 @@
<dependency>
<groupId>com.sendgrid</groupId>
<artifactId>sendgrid-java</artifactId>
<version>4.6.0</version>
<version>4.10.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.postmarkapp/postmark -->
<dependency>
<groupId>com.postmarkapp</groupId>
<artifactId>postmark</artifactId>
<version>1.10.21</version>
<version>1.11.1</version>
</dependency>
</dependencies>
<build>
Expand All @@ -211,23 +219,27 @@
<artifactId>lombok</artifactId>
</exclude>
</excludes>
<fork>false</fork>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
<version>3.2.5</version>
<configuration>
<enableProcessChecker>all</enableProcessChecker>
<shutdown>exit</shutdown>
<!-- Prevent JDK 21 warnings related to Mockito during tests. -->
<!-- See: https://github.com/mockito/mockito/issues/3037 -->
<argLine>
-XX:+EnableDynamicAgentLoading
</argLine>
</configuration>
<dependencies>
<dependency>
<!-- Force test to use junit4.7 -->
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.0.0-M7</version>
<version>3.2.5</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ public static void main(String[] args) {

}

@Bean
public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurer() {
@Override
public void addCorsMappings(CorsRegistry registry) {
ConflictMonitorApiProperties props = new ConflictMonitorApiProperties();
registry.addMapping("/**").allowedOrigins(props.getCors());
// registry.addMapping("/**").allowedMethods("*");
}
};
}
// @Bean
// public WebMvcConfigurer corsConfigurer() {
// return new WebMvcConfigurer() {
// @Override
// public void addCorsMappings(CorsRegistry registry) {
// ConflictMonitorApiProperties props = new ConflictMonitorApiProperties();
// registry.addMapping("/**").allowedOrigins(props.getCors());
// // registry.addMapping("/**").allowedMethods("*");
// }
// };
// }



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Arrays;
import java.util.Properties;

import javax.annotation.PostConstruct;
import jakarta.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down

This file was deleted.

Loading

0 comments on commit 7da5e7b

Please sign in to comment.