Skip to content
Open

Spring4 #3907

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
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void testDirectory()
}

@Test
@DisabledOnOs(OS.WINDOWS)
public void testCombineNotWindows()
{
String path = ModelResourceUtil.combineDisplayPaths(null, "example.opi");
Expand Down
11 changes: 10 additions & 1 deletion app/save-and-restore/model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,21 @@
<version>${tools.jackson.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.glassfish/javax.json -->
<!-- Old Glassfish javax.json impl — required by org.epics:vtype-json which
uses javax.json.spi.JsonProvider SPI. Must coexist with jakarta.json
because the two SPI registrations are under different class names. -->
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.1.4</version>
</dependency>
<!-- New Glassfish jakarta.json impl — satisfies jakarta.json.spi.JsonProvider
SPI used by elasticsearch-java 9.x and other Jakarta EE consumers. -->
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.json</artifactId>
<version>2.0.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
Expand Down
22 changes: 11 additions & 11 deletions dependencies/phoebus-target/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</properties>

<profiles>
<!-- Overriding the default release profile to run the pre release script
with makes the required modification to .classpath and other manually maintained
<!-- Overriding the default release profile to run the pre release script
with makes the required modification to .classpath and other manually maintained
files -->
<profile>
<id>release</id>
Expand Down Expand Up @@ -60,7 +60,7 @@
</profiles>

<dependencies>
<!-- For testing. mockito-all contains hamcrest packages, resulting in
<!-- For testing. mockito-all contains hamcrest packages, resulting in
conflicts. This combination of junit, mockito, hamcrest seems to work -->
<dependency>
<groupId>org.phoebus</groupId>
Expand Down Expand Up @@ -481,10 +481,10 @@
</dependency>

<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.7.0</version>
</dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>${springdoc.version}</version>
</dependency>

<dependency>
<groupId>javax.validation</groupId>
Expand All @@ -500,7 +500,7 @@
</dependency>

<!--JUL bindings for sfl4j-->
<dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.7.28</version>
Expand Down Expand Up @@ -551,7 +551,7 @@
<artifactId>epics-jackie-client</artifactId>
<version>3.1.0</version>
</dependency>

<!-- bouncycastle library used in PVA to decode and check OCSP confirmation of certificates
bcpkix depends on bcutil, which depends on bcprov
-->
Expand All @@ -570,7 +570,7 @@
<artifactId>bcprov-jdk18on</artifactId>
<version>1.84</version>
</dependency>

<!-- Lib to read/write MS Office (Excel, ..) files, fetching only POI itself -->
<dependency>
<groupId>org.apache.poi</groupId>
Expand Down Expand Up @@ -610,7 +610,7 @@
<artifactId>tika-core</artifactId>
<version>3.2.0</version>
</dependency>

<!-- ChartFX library for the Waterfall Plot widget -->
<dependency>
<groupId>io.fair-acc</groupId>
Expand Down
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
<commons.compress.version>1.26.1</commons.compress.version>
<spring.framework.version>5.3.22</spring.framework.version>
<spring.boot.version>2.7.18</spring.boot.version>
<springdoc.version>3.1.0</springdoc.version>
</properties>
<build>
<plugins>
Expand All @@ -110,6 +111,7 @@
<target>${maven.compiler.target}</target>
<fork>true</fork>
<compilerArgs>
<arg>-parameters</arg>
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
Expand Down Expand Up @@ -148,7 +150,7 @@
</goals>
</execution>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down
6 changes: 4 additions & 2 deletions services/alarm-config-logger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
</parent>
<properties>
<java.version>21</java.version>
<!-- override root spring.boot.version for this module only -->
<spring.boot.version>4.1.0</spring.boot.version>
</properties>
<artifactId>service-alarm-config-logger</artifactId>
<name>${project.groupId}:${project.artifactId}</name>
Expand Down Expand Up @@ -91,8 +93,8 @@
<artifactId>jackson-annotations</artifactId>
<version>${jackson.annotations.version}</version>
</dependency>
<!--JUL bindings for sfl4j-->
<dependency>
<!--JUL bindings for slf4j -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.7.28</version>
Expand Down
27 changes: 20 additions & 7 deletions services/alarm-logger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
</parent>
<properties>
<java.version>21</java.version>
<!-- override root spring.boot.version for this module only -->
<spring.boot.version>4.1.0</spring.boot.version>
</properties>
<artifactId>service-alarm-logger</artifactId>
<name>${project.groupId}:${project.artifactId}</name>
Expand Down Expand Up @@ -60,16 +62,27 @@
<artifactId>kafka-clients</artifactId>
<version>${kafka.version}</version>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-client-sniffer</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
<dependency>
<groupId>co.elastic.clients</groupId>
<artifactId>elasticsearch-java</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
<!-- Rest5Client in elasticsearch-java 9.x requires HttpClient 5.2+ -->
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.2.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
<version>5.2.4</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5-h2</artifactId>
<version>5.2.4</version>
</dependency>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
Expand Down Expand Up @@ -141,8 +154,8 @@

<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.7.0</version>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>${springdoc.version}</version>
</dependency>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class AlarmMessageLogger implements Runnable {
* Create a alarm logger for the alarm messages (both state and configuration)
* for a given alarm server topic.
* This runnable will create the kafka streams for the given alarm messages which match the format 'topic'
*
*
* @param topic - the alarm topic in kafka
*/
public AlarmMessageLogger(String topic) {
Expand Down Expand Up @@ -189,9 +189,9 @@ public long extract(ConsumerRecord<Object, Object> record, long previousTimestam

alarms.split(Named.as("alarm-"))
.branch((k, v) -> k.startsWith("state"),
Branched.withConsumer(alarmStateStream -> processAlarmStateStream(alarmStateStream)))
Branched.withConsumer(this::processAlarmStateStream))
.branch((k, v) -> k.startsWith("config"),
Branched.withConsumer(alarmConfigStream -> processAlarmConfigurationStream(alarmConfigStream)))
Branched.withConsumer(this::processAlarmConfigurationStream))
.defaultBranch(Branched.withConsumer(stream -> {
// Log each unmatched key in the default branch
stream.foreach((k, v) -> logger.warning("Unknown alarm message type for key: " + k));
Expand Down Expand Up @@ -314,7 +314,7 @@ public void init(ProcessorContext context) {

@Override
public KeyValue<String, AlarmConfigMessage> transform(String key, AlarmMessage value) {

key = key.replace("\\", "");
if(value != null) {
AlarmConfigMessage newValue = value.getAlarmConfigMessage();
Expand All @@ -328,9 +328,9 @@ public KeyValue<String, AlarmConfigMessage> transform(String key, AlarmMessage v

@Override
public void close() {

}

};
}
});
Expand Down
Loading
Loading