|
16 | 16 | <properties> |
17 | 17 | <java.version>21</java.version> |
18 | 18 | <spring-cloud.version>2025.0.2</spring-cloud.version> |
| 19 | + <spring-boot-thin-layout.version>1.0.31.RELEASE</spring-boot-thin-layout.version> |
| 20 | + <spring-cloud-function-adapter-azure-web.version>5.0.1</spring-cloud-function-adapter-azure-web.version> |
| 21 | + <start-class>io.jaylee.springcloud.AzurefunctionApplication</start-class> |
| 22 | + <azure.functions.maven.plugin.version>1.41.0</azure.functions.maven.plugin.version> |
| 23 | + <functionAppName>springcloud-azurefunction</functionAppName> |
| 24 | + <functionAppRegion>koreacentral</functionAppRegion> |
| 25 | + <functionResourceGroup>java-functions-group</functionResourceGroup> |
19 | 26 | </properties> |
20 | 27 | <dependencies> |
21 | 28 | <dependency> |
|
28 | 35 | </dependency> |
29 | 36 | <dependency> |
30 | 37 | <groupId>org.springframework.cloud</groupId> |
31 | | - <artifactId>spring-cloud-function-context</artifactId> |
| 38 | + <artifactId>spring-cloud-function-adapter-azure-web</artifactId> |
| 39 | + <version>${spring-cloud-function-adapter-azure-web.version}</version> |
32 | 40 | </dependency> |
33 | 41 |
|
34 | 42 | <dependency> |
|
61 | 69 |
|
62 | 70 | <build> |
63 | 71 | <plugins> |
| 72 | + <plugin> |
| 73 | + <groupId>org.apache.maven.plugins</groupId> |
| 74 | + <artifactId>maven-deploy-plugin</artifactId> |
| 75 | + <configuration> |
| 76 | + <skip>true</skip> |
| 77 | + </configuration> |
| 78 | + </plugin> |
| 79 | + <plugin> |
| 80 | + <groupId>com.microsoft.azure</groupId> |
| 81 | + <artifactId>azure-functions-maven-plugin</artifactId> |
| 82 | + <version>${azure.functions.maven.plugin.version}</version> |
| 83 | + <configuration> |
| 84 | + <appName>${functionAppName}</appName> |
| 85 | + <resourceGroup>${functionResourceGroup}</resourceGroup> |
| 86 | + <region>${functionAppRegion}</region> |
| 87 | + <hostJson>${project.basedir}/src/main/resources/host.json</hostJson> |
| 88 | + <runtime> |
| 89 | + <os>linux</os> |
| 90 | + <javaVersion>21</javaVersion> |
| 91 | + </runtime> |
| 92 | + <funcPort>7072</funcPort> |
| 93 | + <appSettings> |
| 94 | + <property> |
| 95 | + <name>FUNCTIONS_EXTENSION_VERSION</name> |
| 96 | + <value>~4</value> |
| 97 | + </property> |
| 98 | + </appSettings> |
| 99 | + </configuration> |
| 100 | + <executions> |
| 101 | + <execution> |
| 102 | + <id>package-functions</id> |
| 103 | + <goals> |
| 104 | + <goal>package</goal> |
| 105 | + </goals> |
| 106 | + </execution> |
| 107 | + </executions> |
| 108 | + </plugin> |
64 | 109 | <plugin> |
65 | 110 | <groupId>org.springframework.boot</groupId> |
66 | 111 | <artifactId>spring-boot-maven-plugin</artifactId> |
|
72 | 117 | </exclude> |
73 | 118 | </excludes> |
74 | 119 | </configuration> |
| 120 | + <dependencies> |
| 121 | + <dependency> |
| 122 | + <groupId>org.springframework.boot.experimental</groupId> |
| 123 | + <artifactId>spring-boot-thin-layout</artifactId> |
| 124 | + <version>${spring-boot-thin-layout.version}</version> |
| 125 | + </dependency> |
| 126 | + </dependencies> |
75 | 127 | </plugin> |
76 | 128 | </plugins> |
77 | 129 | </build> |
|
0 commit comments