<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->
<layer-spec xmlns="urn:jboss:galleon:layer-spec:2.0" name="microprofile-reactive-messaging-kafka">
    <props>
        <prop name="org.wildfly.rule.add-on-depends-on" value="all-dependencies"/>
        <prop name="org.wildfly.rule.add-on" value="reactive-messaging,kafka"/>
        <prop name="org.wildfly.rule.properties-file-match-mp-kafka-property" value="[/META-INF/microprofile-config.properties,/WEB-INF/classes/META-INF/microprofile-config.properties],mp.messaging.connector.smallrye-kafka.*"/>
        <prop name="org.wildfly.rule.properties-file-match-mp-kafka-outgoing" value="[/META-INF/microprofile-config.properties,/WEB-INF/classes/META-INF/microprofile-config.properties],mp.messaging.outgoing.*.connector,smallrye-kafka"/>
        <prop name="org.wildfly.rule.properties-file-match-mp-kafka-incoming" value="[/META-INF/microprofile-config.properties,/WEB-INF/classes/META-INF/microprofile-config.properties],mp.messaging.incoming.*.connector,smallrye-kafka"/>
        <prop name="org.wildfly.rule.add-on-description" value="Support for the MicroProfile Reactive Messaging Kafka connector."/>
    </props>
    <dependencies>
        <layer name="microprofile-reactive-messaging"/>
    </dependencies>

    <packages>
        <package name="io.smallrye.reactive.messaging.connector.kafka"/>
        <package name="org.wildfly.reactive.messaging.kafka"/>
    </packages>
</layer-spec>