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

Updates to Infinispan 15.0.0.CR1 #39158

Merged
merged 1 commit into from
Mar 5, 2024
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
8 changes: 4 additions & 4 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@
<rest-assured.version>5.4.0</rest-assured.version>
<hamcrest.version>2.2</hamcrest.version><!-- The version needs to be compatible with both REST Assured and Awaitility -->
<junit.jupiter.version>5.10.2</junit.jupiter.version>
<infinispan.version>14.0.25.Final</infinispan.version>
<infinispan.protostream.version>4.6.5.Final</infinispan.protostream.version>
<infinispan.version>15.0.0.CR1</infinispan.version>
<infinispan.protostream.version>5.0.0.CR2</infinispan.protostream.version>
<caffeine.version>3.1.5</caffeine.version>
<netty.version>4.1.106.Final</netty.version>
<brotli4j.version>1.14.0</brotli4j.version>
Expand Down Expand Up @@ -5399,7 +5399,7 @@
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-client-hotrod-jakarta</artifactId>
<artifactId>infinispan-client-hotrod</artifactId>
<version>${infinispan.version}</version>
</dependency>
<dependency>
Expand Down Expand Up @@ -5442,7 +5442,7 @@
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-commons-jakarta</artifactId>
<artifactId>infinispan-commons</artifactId>
<version>${infinispan.version}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import org.infinispan.protostream.FileDescriptorSource;
import org.infinispan.protostream.GeneratedSchema;
import org.infinispan.protostream.MessageMarshaller;
import org.infinispan.protostream.RawProtobufMarshaller;
import org.infinispan.protostream.SerializationContextInitializer;
import org.infinispan.protostream.WrappedMessage;
import org.jboss.jandex.AnnotationInstance;
Expand Down Expand Up @@ -142,20 +141,7 @@ NativeImageFeatureBuildItem nativeImageFeature() {
@BuildStep
public void handleProtoStreamRequirements(BuildProducer<MarshallingBuildItem> protostreamPropertiesBuildItem)
throws ClassNotFoundException {
// We only apply this if we are in native mode in build time to apply to the properties
// Note that the other half is done in QuerySubstitutions.SubstituteMarshallerRegistration class
// Note that the registration of these files are done twice in normal VM mode
// (once during init and once at runtime)
Properties properties = new Properties();
try {
properties.put(PROTOBUF_FILE_PREFIX + WrappedMessage.PROTO_FILE,
getContents("/" + WrappedMessage.PROTO_FILE));
String queryProtoFile = "org/infinispan/query/remote/client/query.proto";
properties.put(PROTOBUF_FILE_PREFIX + queryProtoFile, getContents("/" + queryProtoFile));
} catch (Exception ex) {
// Do nothing if fails
}

Map<String, Object> marshallers = new HashMap<>();
initMarshaller(InfinispanClientUtil.DEFAULT_INFINISPAN_CLIENT_NAME,
infinispanClientsBuildTimeConfig.defaultInfinispanClient.marshallerClass, marshallers);
Expand Down Expand Up @@ -205,6 +191,8 @@ InfinispanPropertiesBuildItem setup(ApplicationArchivesBuildItem applicationArch
additionalBeans.produce(AdditionalBeanBuildItem.builder().addBeanClass(InfinispanClientName.class).build());
additionalBeans.produce(AdditionalBeanBuildItem.builder().addBeanClass(Remote.class).build());

resourceBuildItem.produce(new NativeImageResourceBuildItem("proto/generated/query.proto"));
resourceBuildItem.produce(new NativeImageResourceBuildItem(WrappedMessage.PROTO_FILE));
hotDeployment
.produce(new HotDeploymentWatchedFileBuildItem(META_INF + File.separator + DEFAULT_HOTROD_CLIENT_PROPERTIES));

Expand Down Expand Up @@ -460,7 +448,7 @@ private void addMaxEntries(String clientName, InfinispanClientBuildTimeConfig co
@BuildStep
UnremovableBeanBuildItem ensureBeanLookupAvailable() {
return UnremovableBeanBuildItem.beanTypes(BaseMarshaller.class, EnumMarshaller.class, MessageMarshaller.class,
RawProtobufMarshaller.class, FileDescriptorSource.class);
FileDescriptorSource.class);
}

@BuildStep
Expand Down
2 changes: 1 addition & 1 deletion extensions/infinispan-client/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-client-hotrod-jakarta</artifactId>
<artifactId>infinispan-client-hotrod</artifactId>
<exclusions>
<exclusion>
<groupId>org.infinispan</groupId>
Expand Down

This file was deleted.

This file was deleted.

Loading