Skip to content
Snippets Groups Projects
pom.xml 7.16 KiB
Newer Older
  • Learn to ignore specific revisions
  • David Diederich's avatar
    David Diederich committed
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
      ~ Copyright © Microsoft Corporation
      ~
      ~ Licensed 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>
            <artifactId>legal-service</artifactId>
            <groupId>org.opengroup.osdu.legal</groupId>
            <version>0.0.5-SNAPSHOT</version>
            <relativePath>../..</relativePath>
        </parent>
        <modelVersion>4.0.0</modelVersion>
    
        <artifactId>legal-azure</artifactId>
        <packaging>jar</packaging>
        <properties>
            <azure.version>2.1.7</azure.version>
            <azure.appservice.resourcegroup></azure.appservice.resourcegroup>
            <azure.appservice.plan></azure.appservice.plan>
            <azure.appservice.appname></azure.appservice.appname>
            <azure.appservice.subscription></azure.appservice.subscription>
        </properties>
    
        <dependencies>
            <dependency>
                <groupId>org.opengroup.osdu</groupId>
                <artifactId>os-core-common</artifactId>
            </dependency>
            <dependency>
                <groupId>org.opengroup.osdu.legal</groupId>
                <artifactId>legal-core</artifactId>
    
                <version>0.0.5-SNAPSHOT</version>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>javax.inject</groupId>
                <artifactId>javax.inject</artifactId>
                <version>1</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>4.0.1</version>
                <scope>provided</scope>
            </dependency>
    
            <dependency>
                <groupId>com.microsoft.azure</groupId>
                <artifactId>azure-active-directory-spring-boot-starter</artifactId>
                <version>${azure.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-security</artifactId>
    
                <exclusions>
                    <exclusion>
                        <groupId>ch.qos.logback</groupId>
                        <artifactId>logback-classic</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.apache.logging.log4j</groupId>
                        <artifactId>log4j-to-slf4j</artifactId>
                    </exclusion>
                </exclusions>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-oauth2-client</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-oauth2-jose</artifactId>
            </dependency>
            <dependency>
                <groupId>org.opengroup.osdu</groupId>
                <artifactId>core-lib-azure</artifactId>
    
    David Diederich's avatar
    David Diederich committed
            </dependency>
            <dependency>
                <groupId>org.projectlombok</groupId>
                <artifactId>lombok</artifactId>
            </dependency>
            <dependency>
                <groupId>org.opengroup.osdu.legal</groupId>
                <artifactId>legal-core</artifactId>
                <version>0.0.5-SNAPSHOT</version>
                <scope>compile</scope>
            </dependency>
    
            <!--
             Override the spring-boot version of these dependencies to the ones
             required by the azure-core library. This needs to be done for each
             app that depends on this library
             -->
            <dependency>
                <groupId>io.projectreactor.netty</groupId>
                <artifactId>reactor-netty</artifactId>
                <version>0.9.0.RELEASE</version>
            </dependency>
            <dependency>
                <groupId>io.projectreactor</groupId>
                <artifactId>reactor-core</artifactId>
                <version>3.3.0.RELEASE</version>
            </dependency>
        </dependencies>
    
    
        <repositories>
            <repository>
                <id>${gitlab-server}</id>
                <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url>
            </repository>
        </repositories>
    
        <distributionManagement>
            <repository>
                <id>${gitlab-server}</id>
                <url>https://community.opengroup.org/api/v4/projects/74/packages/maven</url>
            </repository>
            <snapshotRepository>
                <id>${gitlab-server}</id>
                <url>https://community.opengroup.org/api/v4/projects/74/packages/maven</url>
            </snapshotRepository>
        </distributionManagement>
    
    
    David Diederich's avatar
    David Diederich committed
        <build>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <goals>
                                <goal>repackage</goal>
                            </goals>
                            <configuration>
                                <classifier>spring-boot</classifier>
                                <mainClass>
                                    org.opengroup.osdu.legal.azure.LegalApplication
                                </mainClass>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                <groupId>com.microsoft.azure</groupId>
                <artifactId>azure-webapp-maven-plugin</artifactId>
                <version>1.7.0</version>
                <configuration>
                <schemaVersion>V2</schemaVersion>
                <authentication>
                    <serverId>azure-auth</serverId>
                </authentication>
                <subscriptionId>${azure.appservice.subscription}</subscriptionId>
                <resourceGroup>${azure.appservice.resourcegroup}</resourceGroup>
                <appServicePlanName>${azure.appservice.plan}</appServicePlanName>
                <appName>${azure.appservice.appname}</appName>
                <appSettings>
                    <property>
                        <name>JAVA_OPTS</name>
                        <value>-Dserver.port=80</value>
                    </property>
                </appSettings>
                    <deployment>
                        <resources>
                            <resource>
                                <directory>${project.basedir}/target</directory>
                                <includes>
                                    <include>*spring-boot.jar</include>
                                </includes>
                            </resource>
                        </resources>
                    </deployment>
                </configuration>
                </plugin>
            </plugins>
        </build>
    </project>