|
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<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"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <groupId>com.azfs.example</groupId> |
| 6 | + <artifactId>dagger-function</artifactId> |
| 7 | + <version>1.0-SNAPSHOT</version> |
| 8 | + <packaging>jar</packaging> |
| 9 | + |
| 10 | + <name>Azure Java Functions</name> |
| 11 | + |
| 12 | + <properties> |
| 13 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 14 | + <java.version>1.8</java.version> |
| 15 | + <azure.functions.maven.plugin.version>1.21.0</azure.functions.maven.plugin.version> |
| 16 | + <azure.functions.java.library.version>2.0.1</azure.functions.java.library.version> |
| 17 | + <functionAppName>dagger-function-20221101192648097</functionAppName> |
| 18 | + </properties> |
| 19 | + |
| 20 | + <dependencies> |
| 21 | + <dependency> |
| 22 | + <groupId>com.microsoft.azure.functions</groupId> |
| 23 | + <artifactId>azure-functions-java-library</artifactId> |
| 24 | + <version>${azure.functions.java.library.version}</version> |
| 25 | + </dependency> |
| 26 | + |
| 27 | + <dependency> |
| 28 | + <groupId>com.google.dagger</groupId> |
| 29 | + <artifactId>dagger</artifactId> |
| 30 | + <version>2.44</version> |
| 31 | + </dependency> |
| 32 | + |
| 33 | + <dependency> |
| 34 | + <groupId>com.microsoft.azure.functions</groupId> |
| 35 | + <artifactId>azure-functions-java-spi</artifactId> |
| 36 | + <version>1.0.0</version> |
| 37 | + <scope>provided</scope> |
| 38 | + </dependency> |
| 39 | + |
| 40 | + <!-- Test --> |
| 41 | + <dependency> |
| 42 | + <groupId>org.junit.jupiter</groupId> |
| 43 | + <artifactId>junit-jupiter</artifactId> |
| 44 | + <version>5.4.2</version> |
| 45 | + <scope>test</scope> |
| 46 | + </dependency> |
| 47 | + |
| 48 | + <dependency> |
| 49 | + <groupId>org.mockito</groupId> |
| 50 | + <artifactId>mockito-core</artifactId> |
| 51 | + <version>2.23.4</version> |
| 52 | + <scope>test</scope> |
| 53 | + </dependency> |
| 54 | + </dependencies> |
| 55 | + |
| 56 | + <build> |
| 57 | + <plugins> |
| 58 | + <plugin> |
| 59 | + <groupId>org.apache.maven.plugins</groupId> |
| 60 | + <artifactId>maven-compiler-plugin</artifactId> |
| 61 | + <version>3.8.1</version> |
| 62 | + <configuration> |
| 63 | + <source>${java.version}</source> |
| 64 | + <target>${java.version}</target> |
| 65 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 66 | + <annotationProcessorPaths> |
| 67 | + <path> |
| 68 | + <groupId>com.google.dagger</groupId> |
| 69 | + <artifactId>dagger-compiler</artifactId> |
| 70 | + <version>2.16</version> |
| 71 | + </path> |
| 72 | + </annotationProcessorPaths> |
| 73 | + </configuration> |
| 74 | + </plugin> |
| 75 | + <plugin> |
| 76 | + <groupId>com.microsoft.azure</groupId> |
| 77 | + <artifactId>azure-functions-maven-plugin</artifactId> |
| 78 | + <version>${azure.functions.maven.plugin.version}</version> |
| 79 | + <configuration> |
| 80 | + <!-- function app name --> |
| 81 | + <appName>${functionAppName}</appName> |
| 82 | + <!-- function app resource group --> |
| 83 | + <resourceGroup>java-functions-group</resourceGroup> |
| 84 | + <!-- function app service plan name --> |
| 85 | + <appServicePlanName>java-functions-app-service-plan</appServicePlanName> |
| 86 | + <!-- function app region--> |
| 87 | + <!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details#supported-regions for all valid values --> |
| 88 | + <region>westus</region> |
| 89 | + <!-- function pricingTier, default to be consumption if not specified --> |
| 90 | + <!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details#supported-pricing-tiers for all valid values --> |
| 91 | + <!-- <pricingTier></pricingTier> --> |
| 92 | + <!-- Whether to disable application insights, default is false --> |
| 93 | + <!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details for all valid configurations for application insights--> |
| 94 | + <!-- <disableAppInsights></disableAppInsights> --> |
| 95 | + <runtime> |
| 96 | + <!-- runtime os, could be windows, linux or docker--> |
| 97 | + <os>windows</os> |
| 98 | + <javaVersion>8</javaVersion> |
| 99 | + </runtime> |
| 100 | + <appSettings> |
| 101 | + <property> |
| 102 | + <name>FUNCTIONS_EXTENSION_VERSION</name> |
| 103 | + <value>~4</value> |
| 104 | + </property> |
| 105 | + </appSettings> |
| 106 | + </configuration> |
| 107 | + <executions> |
| 108 | + <execution> |
| 109 | + <id>package-functions</id> |
| 110 | + <goals> |
| 111 | + <goal>package</goal> |
| 112 | + </goals> |
| 113 | + </execution> |
| 114 | + </executions> |
| 115 | + </plugin> |
| 116 | + <!--Remove obj folder generated by .NET SDK in maven clean--> |
| 117 | + <plugin> |
| 118 | + <artifactId>maven-clean-plugin</artifactId> |
| 119 | + <version>3.1.0</version> |
| 120 | + <configuration> |
| 121 | + <filesets> |
| 122 | + <fileset> |
| 123 | + <directory>obj</directory> |
| 124 | + </fileset> |
| 125 | + </filesets> |
| 126 | + </configuration> |
| 127 | + </plugin> |
| 128 | + </plugins> |
| 129 | + </build> |
| 130 | +</project> |
0 commit comments