<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License.  You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->
<features name="shiro-2.0.6" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">

    <!-- Shiro core features: -->

    <feature name="shiro-core" version="2.0.6">
        <feature version="[1,2)">spifly</feature>
        <bundle dependency="true">mvn:commons-beanutils/commons-beanutils/1.11.0</bundle>
        <bundle dependency="true">mvn:org.apache.commons/commons-configuration2/2.12.0</bundle>
        <bundle dependency="true">mvn:commons-collections/commons-collections/3.2.2</bundle>
        <bundle dependency="true">mvn:org.apache.commons/commons-text/1.8</bundle>
        <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.3_spec/1.1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-lang/2.0.6</bundle>
        <bundle>mvn:org.apache.shiro/shiro-cache/2.0.6</bundle>
        <bundle>mvn:org.apache.shiro/shiro-config-ogdl/2.0.6</bundle>
        <bundle>mvn:org.apache.shiro/shiro-crypto-core/2.0.6</bundle>
        <bundle>mvn:org.apache.shiro/shiro-crypto-cipher/2.0.6</bundle>
        <bundle>mvn:org.apache.shiro/shiro-crypto-hash/2.0.6</bundle>
        <bundle>mvn:org.apache.shiro/shiro-config-core/2.0.6</bundle>
        <bundle>mvn:org.apache.shiro/shiro-event/2.0.6</bundle>
        <bundle>mvn:org.apache.shiro/shiro-core/2.0.6</bundle>
    </feature>

    <feature name="shiro-web" version="2.0.6">
        <feature version="2.0.6">shiro-core</feature>
        <feature version="[2,5)">war</feature>
        <bundle>mvn:org.owasp.encoder/encoder/1.3.1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-web/2.0.6</bundle>
    </feature>

    <!-- 3rd party support (alphabetized please): -->

    <feature name="shiro-aspectj" version="2.0.6">
        <feature version="2.0.6">shiro-core</feature>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aspectj/1.9.4_1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-aspectj/2.0.6</bundle>
    </feature>

    <feature name="shiro-cache" version="2.0.6">
        <feature version="2.0.6">shiro-core</feature>
        <bundle dependency='true'>mvn:javax.cache/cache-api/1.1.1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-cache/2.0.6</bundle>
    </feature>

    <feature name="shiro-ehcache" version="2.0.6">
        <feature version="2.0.6">shiro-core</feature>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache/2.6.11_1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-ehcache/2.0.6</bundle>
    </feature>

    <feature name="shiro-hazelcast" version="2.0.6">
        <feature version="2.0.6">shiro-core</feature>
        <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
        <bundle>mvn:com.hazelcast/hazelcast-all/5.3.8</bundle>
        <bundle>mvn:org.apache.shiro/shiro-hazelcast/2.0.6</bundle>
    </feature>

    <!--
    TODO enable when openid4j module is done
    <feature name="shiro-openid4j" version="2.0.6">
        <feature version="2.0.6">shiro-core</feature>
        <feature version="2.0.6">shiro-web</feature>
        <feature version="[3,4)">spring</feature>
        TODO: is there an openid4j OSGi bundle?
        <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.openid4j/${openid4j.version}</bundle>
        <bundle>mvn:org.apache.shiro/shiro-openid4j/2.0.6</bundle>
    </feature>
    -->

    <feature name="shiro-quartz" version="2.0.6">
        <feature version="2.0.6">shiro-core</feature>
        <bundle dependency="true">mvn:commons-collections/commons-collections/3.2.2</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.c3p0/0.9.5.4_1</bundle>
        <bundle dependency="true">mvn:com.zaxxer/HikariCP-java7/2.4.13</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/2.3.2_1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-quartz/2.0.6</bundle>
    </feature>

    <feature name="shiro-spring" version="2.0.6">
        <feature version="2.0.6">shiro-web</feature>
        <feature version="[4,6)">spring</feature>
        <bundle>mvn:org.apache.shiro/shiro-spring/2.0.6</bundle>
    </feature>

</features>
