<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. 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.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <parent>
        <groupId>org.wso2.carbon.devicemgt</groupId>
        <artifactId>identity-extensions</artifactId>
        <version>2.0.4-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.device.mgt.oauth.extensions</artifactId>
    <version>2.0.4-SNAPSHOT</version>
    <packaging>bundle</packaging>
    <name>WSO2 Carbon - OAuth Extensions</name>
    <url>http://wso2.org</url>

    <dependencies>
        <dependency>
            <groupId>org.wso2.carbon.identity.inbound.auth.oauth2</groupId>
            <artifactId>org.wso2.carbon.identity.oauth</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.user.core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.apimgt</groupId>
            <artifactId>org.wso2.carbon.apimgt.impl</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.apimgt</groupId>
            <artifactId>org.wso2.carbon.apimgt.keymgt</artifactId>
        </dependency>
		<dependency>
			<groupId>com.googlecode.json-simple.wso2</groupId>
			<artifactId>json-simple</artifactId>
		</dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>1.4.0</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${project.artifactId}</Bundle-Name>
                        <Bundle-Version>${carbon.device.mgt.version}</Bundle-Version>
                        <Bundle-Description>OAuth Extensions Bundle</Bundle-Description>
                        <Private-Package>org.wso2.carbon.device.mgt.oauth.extensions.internal</Private-Package>
                        <Export-Package>
                            !org.wso2.carbon.device.mgt.oauth.extensions.internal,
                            org.wso2.carbon.device.mgt.oauth.extensions.*
                        </Export-Package>
                        <Import-Package>
                            javax.security.auth.*,
                            org.apache.commons.logging,
                            org.osgi.service.component,
                            org.wso2.carbon.device.mgt.oauth.extensions.*,
                            org.wso2.carbon.identity.application.common.model,
                            org.wso2.carbon.identity.oauth.callback,
                            org.wso2.carbon.identity.oauth2,
                            org.wso2.carbon.identity.oauth2.model,
                            org.wso2.carbon.identity.oauth2.validators,
                            org.wso2.carbon.user.api,
                            org.wso2.carbon.user.core.service,
                            org.wso2.carbon.user.core.tenant,
                            org.json.simple,
                            javax.cache,
                            org.wso2.carbon.apimgt.api,
                            org.wso2.carbon.apimgt.impl,
                            org.wso2.carbon.apimgt.impl.dao,
                            org.wso2.carbon.apimgt.impl.utils,
                            org.wso2.carbon.identity.core.util,
                            org.wso2.carbon.identity.oauth2.dto,
                            org.wso2.carbon.identity.oauth2.token,
                            org.apache.oltu.oauth2.common.validators,
                            org.wso2.carbon.utils,
                            org.wso2.carbon.context,
                            org.wso2.carbon.identity.oauth.cache,
                            org.wso2.carbon.identity.oauth.config,
                            org.wso2.carbon.identity.oauth2.dao,
                            org.wso2.carbon.utils.multitenancy,
                            org.wso2.carbon.identity.oauth2.grant.jwt.*,
                            org.wso2.carbon.device.mgt.core.*,
                            org.wso2.carbon.apimgt.keymgt,
                            org.wso2.carbon.apimgt.keymgt.handlers,
                            com.google.gson,
                            org.apache.commons.codec.binary,
                            org.wso2.carbon.identity.application.authentication.framework.model,
                            org.apache.oltu.oauth2.common,
                            org.wso2.carbon.base,
                            org.apache.xerces.impl; resolution:=optional,
                            org.apache.xerces.util; resolution:=optional
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>