<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~~~~~~licensing~~~~~~
  platform-backward-compat
  ==========
  Copyright (C) 2020 - 2026 EmDev LLC
  ==========
  You may not use this file except in accordance with the License Terms of the Copyright
  Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
  rights to the Software and any copies are the property of the Copyright Holder. Unless
  it is explicitly allowed the Copyright Holder, the User is prohibited from using the
  Software for commercial purposes to provide services to third parties.
  
  The Copyright Holder hereby declares that the Software is provided on an "AS IS".
  Under no circumstances does the Copyright Holder guarantee or promise that the
  Software provided by him will be suitable or not suitable for the specific purposes
  of the User, that the Software will meet all commercial and personal subjective
  expectations of the User, that the Software will work properly, without technical
  errors, quickly and uninterruptedly.
  
  Under no circumstances shall the Copyright Holder or its Affiliates is not liable
  to the User for any direct or indirect losses of the User, his expenses or actual
  damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
  or damage to data, property, etc.
  ~~~~~~/licensing~~~~~~
  -->

<features name="platform-backward-compat-1.12.0" xmlns="http://karaf.apache.org/xmlns/features/v1.6.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.6.0 http://karaf.apache.org/xmlns/features/v1.6.0">

	<!-- platform repo -->
    <repository>mvn:ru.entaxy.esb/platform/1.12.0/xml/features</repository>

	<feature name="entaxy-backward-compatibility-modules" version="1.12.0">

    	<!-- @platform -->
		<feature dependency="true">entaxy-platform</feature>
	
		<feature version="1.12.0">entaxy-backward-compatibility-resources</feature>
	
		<feature version="1.12.0">entaxy-bc-system</feature>
		
		<feature version="1.12.0">entaxy-bc-api</feature>
		
		<feature version="1.12.0">entaxy-bc-impl</feature>

		<feature version="1.12.0">entaxy-bc-management</feature>

		<feature version="1.12.0">entaxy-bc-modules</feature>
		
	</feature>     
    
    <!-- will be installed in assembly -->
    <feature name="entaxy-backward-compatibility-resources" version="1.12.0">
		<configfile finalname="${karaf.etc}/scripts/entaxy.bc.shell.script" override="true">
			mvn:ru.entaxy.platform/platform-backward-compat/1.12.0/script/entaxy.bc.shell
		</configfile>         
    </feature>
    
    <feature name="entaxy-bc-system" version="1.12.0" start-level="80">
    	<!-- @platform -->
		<feature dependency="true">entaxy-platform</feature>
        <configfile finalname="${karaf.etc}/ru.entaxy.esb.cfg" override="false">
            mvn:ru.entaxy.esb.system/system-parent/1.12.0/cfg/ru.entaxy.esb
        </configfile>
		<configfile finalname="${karaf.etc}/org.apache.felix.hc.generalchecks.BundlesStartedCheck-system.cfg" override="true">
			mvn:ru.entaxy.esb.system/system-parent/1.12.0/cfg/org.apache.felix.hc.generalchecks.BundlesStartedCheck-system
		</configfile> 
    	<bundle>mvn:ru.entaxy.esb.system.commons/system-commons/1.12.0</bundle>
    	<bundle>mvn:ru.entaxy.esb.system.core/template/1.12.0</bundle>
    </feature>
	
	<feature name="entaxy-bc-api" version="1.12.0" start-level="90">

    	<feature dependency="true">entaxy-bc-system</feature>

		<bundle>mvn:ru.entaxy.platform.security.jaas/entaxy-legacy-auth-api/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.registry.systems/system-api/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.registry.connector/connector-api/1.12.0</bundle>

        <bundle>mvn:ru.entaxy.esb.system.core.permission/permission-api/1.12.0</bundle>
	    
	    <!-- 
	    <capability>
            osgi.service;objectClass=org.hibernate.SessionFactory;effective:=active;
        </capability>
        -->        
	</feature>
	
	<feature name="entaxy-bc-impl" version="1.12.0" start-level="90">

    	<feature dependency="true">entaxy-bc-api</feature>

		<bundle>mvn:ru.entaxy.platform.security.jaas/entaxy-legacy-auth/1.12.0</bundle>

        <bundle>mvn:ru.entaxy.esb.system.registry.systems/system-impl/1.12.0</bundle>

        <bundle>mvn:ru.entaxy.esb.system.registry.connector/connector-impl/1.12.0</bundle>

        <bundle>mvn:ru.entaxy.esb.system.core.permission/permission-common/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.core.permission/permission-handler/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.core.permission/permission-component/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.core.permission/permission-impl/1.12.0</bundle>

		<!-- 
        <capability>
            osgi.service;objectClass=org.hibernate.SessionFactory;effective:=active;
        </capability>
         -->
		<!--          
		<capability>
            osgi.service;effective:=active;objectClass=javax.sql.DataSource;osgi.jndi.service.name=entaxy.esb.storage;
        </capability>
		-->
	</feature>

	<feature name="entaxy-bc-management" version="1.12.0" start-level="100">

    	<feature dependency="true">entaxy-bc-api</feature>
    	<feature dependency="true">entaxy-bc-impl</feature>

		<bundle>mvn:ru.entaxy.platform.backward-compat/blueprint-generator-service/1.12.0</bundle>

    	<bundle>mvn:ru.entaxy.esb.system.core.dispatcher/dispatcher/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.management.bundle.jpa/bundle-service/1.12.0</bundle>

        <bundle>mvn:ru.entaxy.esb.system.management.bundle.manager/bundle-manager/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.management.connector.manager/connector-manager/1.12.0</bundle>

        <bundle>mvn:ru.entaxy.esb.system.management.profile.manager/profile-manager/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.management.bridge.profile.manager/bridge-profile-manager/1.12.0</bundle>
        <bundle>mvn:ru.entaxy.esb.system.management.route.manager/route-manager/1.12.0</bundle>

        <bundle>mvn:ru.entaxy.esb.system.management.permission.manager/permission-manager/1.12.0</bundle>
    	<bundle>mvn:ru.entaxy.esb.system.auth.basic.htpasswd/htpasswd/1.12.0</bundle>	

        <bundle>mvn:ru.entaxy.esb.system.management/system-management-api/1.12.0</bundle>

		<!-- 
        <capability>
            osgi.service;objectClass=org.hibernate.SessionFactory;effective:=active;
        </capability>
		 -->
	</feature>
	
    <feature name="entaxy-bc-modules" version="1.12.0" start-level="100">
		<bundle>mvn:ru.entaxy.platform.backward-compat/profile-management-service-adapters/1.12.0</bundle>
		<bundle>mvn:ru.entaxy.platform.backward-compat/profile-storage/1.12.0</bundle>
		<bundle>mvn:ru.entaxy.platform.backward-compat/connector-storage/1.12.0</bundle>
    </feature>
    
</features>
