Fixing compile time warnings
Avoiding calling deprecated methods, and adding compile time dependencies for annotations. Closes #17499
This commit is contained in:
parent
ceef7cfa8a
commit
0b2802fa18
3 changed files with 13 additions and 3 deletions
5
pom.xml
5
pom.xml
|
@ -1017,6 +1017,11 @@
|
|||
<artifactId>infinispan-remote-query-client</artifactId>
|
||||
<version>${infinispan.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.infinispan</groupId>
|
||||
<artifactId>infinispan-component-annotations</artifactId>
|
||||
<version>${infinispan.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.infinispan.protostream</groupId>
|
||||
<artifactId>protostream-processor</artifactId>
|
||||
|
|
|
@ -127,6 +127,12 @@
|
|||
<version>${testcontainers.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- annotations needed to avoid compile time warnings about enums constants -->
|
||||
<dependency>
|
||||
<groupId>org.infinispan</groupId>
|
||||
<artifactId>infinispan-component-annotations</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -15,7 +15,6 @@ import org.infinispan.server.hotrod.configuration.HotRodServerConfigurationBuild
|
|||
import org.junit.rules.ExternalResource;
|
||||
import org.keycloak.Config;
|
||||
import org.keycloak.connections.infinispan.InfinispanUtil;
|
||||
import org.keycloak.models.map.storage.hotRod.common.HotRodUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
@ -99,10 +98,10 @@ public class HotRodServerRule extends ExternalResource {
|
|||
|
||||
sessionConfigBuilder1.sites().addBackup()
|
||||
.site("site-2").backupFailurePolicy(BackupFailurePolicy.IGNORE).strategy(BackupConfiguration.BackupStrategy.SYNC)
|
||||
.replicationTimeout(15000).enabled(true);
|
||||
.replicationTimeout(15000);
|
||||
sessionConfigBuilder2.sites().addBackup()
|
||||
.site("site-1").backupFailurePolicy(BackupFailurePolicy.IGNORE).strategy(BackupConfiguration.BackupStrategy.SYNC)
|
||||
.replicationTimeout(15000).enabled(true);
|
||||
.replicationTimeout(15000);
|
||||
|
||||
Configuration sessionCacheConfiguration1 = sessionConfigBuilder1.build();
|
||||
Configuration sessionCacheConfiguration2 = sessionConfigBuilder2.build();
|
||||
|
|
Loading…
Reference in a new issue