157 lines
4.6 KiB
XML
157 lines
4.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>3.1.1</version>
|
|
<relativePath/>
|
|
<!-- lookup parent from repository -->
|
|
</parent>
|
|
<groupId>com.example</groupId>
|
|
<artifactId>azure-web-demo</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<name>azure-web-demo</name>
|
|
<description>Spring Cloud Function - Azure Function Web Adapter Demo</description>
|
|
|
|
<properties>
|
|
<!-- 1. You must use JDK 17+ -->
|
|
<java.version>17</java.version>
|
|
|
|
<spring-boot-thin-layout.version>1.0.28.RELEASE</spring-boot-thin-layout.version>
|
|
<spring-cloud-function-adapter-azure-web.version>4.0.5-SNAPSHOT</spring-cloud-function-adapter-azure-web.version>
|
|
|
|
<!-- 2. You must set the Spring Boot start class for the Azure Function runtime to be able to find the entry point. -->
|
|
<start-class>com.example.azure.web.AzureWebDemoApplication</start-class>
|
|
|
|
<!-- 3. Azure Function maven plugin configurations -->
|
|
<azure.functions.maven.plugin.version>1.22.0</azure.functions.maven.plugin.version>
|
|
<functionAppName>scf-azure-web-sample</functionAppName>
|
|
<functionAppRegion>westus</functionAppRegion>
|
|
<functionResourceGroup>java-functions-group</functionResourceGroup>
|
|
<functionAppServicePlanName>java-functions-app-service-plan</functionAppServicePlanName>
|
|
<functionPricingTier>EP1</functionPricingTier>
|
|
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<!-- 4. Dependency to active the Spring Azure Web Adapter -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-function-adapter-azure-web</artifactId>
|
|
<version>${spring-cloud-function-adapter-azure-web.version}</version>
|
|
</dependency>
|
|
|
|
<!-- rping Web Application common dependecies -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.microsoft.azure</groupId>
|
|
<artifactId>azure-functions-maven-plugin</artifactId>
|
|
<version>${azure.functions.maven.plugin.version}</version>
|
|
|
|
<configuration>
|
|
<appName>${functionAppName}</appName>
|
|
<resourceGroup>${functionResourceGroup}</resourceGroup>
|
|
<region>${functionAppRegion}</region>
|
|
<appServicePlanName>${functionAppServicePlanName}</appServicePlanName>
|
|
<pricingTier>${functionPricingTier}</pricingTier>
|
|
|
|
<hostJson>${project.basedir}/src/main/resources/host.json</hostJson>
|
|
|
|
<runtime>
|
|
<os>linux</os>
|
|
<javaVersion>17</javaVersion>
|
|
</runtime>
|
|
|
|
<funcPort>7072</funcPort>
|
|
|
|
<appSettings>
|
|
<property>
|
|
<name>FUNCTIONS_EXTENSION_VERSION</name>
|
|
<value>~4</value>
|
|
</property>
|
|
</appSettings>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>package-functions</id>
|
|
<goals>
|
|
<goal>package</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot.experimental</groupId>
|
|
<artifactId>spring-boot-thin-layout</artifactId>
|
|
<version>${spring-boot-thin-layout.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-snapshot</id>
|
|
<url>https://repo.spring.io/snapshot</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
<releases>
|
|
<enabled>false</enabled>
|
|
</releases>
|
|
</repository>
|
|
<repository>
|
|
<id>spring-milestone</id>
|
|
<url>https://repo.spring.io/milestone</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
</project>
|