Skip to content

Commit

Permalink
Update plugins, build DB image for IT test
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Mar 17, 2024
1 parent 0e80373 commit 65c9814
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
32 changes: 24 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<jacoco.append>true</jacoco.append>
<arquillian.version>1.8.0.Final</arquillian.version>
<arquillian.wildfly.version>5.0.1.Final</arquillian.wildfly.version>
<jkube.version>1.16.0</jkube.version>
<jkube.version>1.16.1</jkube.version>
</properties>

<distributionManagement>
Expand Down Expand Up @@ -315,7 +315,7 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.25.1</version>
<version>3.25.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -347,7 +347,7 @@
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.7.2</version>
<version>42.7.3</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -375,13 +375,13 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<version>1.19.6</version>
<version>1.19.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<version>1.19.6</version>
<version>1.19.7</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -530,7 +530,7 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.3.0</version>
<version>4.8.3.1</version>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
Expand Down Expand Up @@ -669,11 +669,12 @@
</executions>
</plugin>
<plugin>
<artifactId>smallrye-open-api-maven-plugin</artifactId>
<groupId>io.smallrye</groupId>
<version>3.8.0</version>
<artifactId>smallrye-open-api-maven-plugin</artifactId>
<version>3.10.0</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>generate-schema</goal>
</goals>
Expand Down Expand Up @@ -974,6 +975,21 @@
<verbose>true</verbose>
<registry>registry.x1</registry>
<images>
<image>
<name>registry.x1/j7beck/x1-postgres-stomp-test:${app.majorVersion}.${app.minorVersion}</name>
<build>
<assembly>
<name>/</name>
<excludeFinalOutputArtifact>true</excludeFinalOutputArtifact>
<exportTargetDir>false</exportTargetDir>
<permissions>auto</permissions>
</assembly>
<contextDir>${project.basedir}/src/main/docker/x1-postgres-stomp-test</contextDir>
<tags>
<tag>${app.majorVersion}.${app.minorVersion}-${buildNumber}</tag>
</tags>
</build>
</image>
<image>
<name>registry.x1/j7beck/x1-wildfly-stomp-test-it:${app.majorVersion}.${app.minorVersion}</name>
<build>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/x1/stomp/websockets/PingSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void setup() {
private SessionHolder sessionHolder;

@Schedule(hour = "*", minute = "*", second = "*/30", persistent = false)
public void sendPing() {
public void ping() {
sessionHolder.values().forEach(session -> {
try {
session.getBasicRemote().sendPing(ping);
Expand Down

0 comments on commit 65c9814

Please sign in to comment.