|
5 | 5 | <parent> |
6 | 6 | <groupId>org.springframework.boot</groupId> |
7 | 7 | <artifactId>spring-boot-starter-parent</artifactId> |
8 | | - <version>2.7.9</version> |
| 8 | + <version>3.5.13</version> |
9 | 9 | <relativePath/> <!-- lookup parent from repository --> |
10 | 10 | </parent> |
11 | 11 | <groupId>io.jaylee</groupId> |
|
14 | 14 | <name>azurefunction</name> |
15 | 15 | <description>Demo project for Spring Boot</description> |
16 | 16 | <properties> |
17 | | - <java.version>17</java.version> |
18 | | - <spring-cloud.version>2021.0.5</spring-cloud.version> |
| 17 | + <java.version>21</java.version> |
| 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 | + <start-class>io.jaylee.springcloud.AzurefunctionApplication</start-class> |
| 21 | + <azure.functions.maven.plugin.version>1.41.0</azure.functions.maven.plugin.version> |
| 22 | + <!-- Azure resource defaults for local packaging; override with -D flags or the 'deploy' profile --> |
| 23 | + <functionAppName>springcloud-azurefunction</functionAppName> |
19 | 24 | </properties> |
20 | 25 | <dependencies> |
21 | 26 | <dependency> |
|
28 | 33 | </dependency> |
29 | 34 | <dependency> |
30 | 35 | <groupId>org.springframework.cloud</groupId> |
31 | | - <artifactId>spring-cloud-function-context</artifactId> |
| 36 | + <artifactId>spring-cloud-function-adapter-azure-web</artifactId> |
32 | 37 | </dependency> |
33 | 38 |
|
34 | 39 | <dependency> |
|
61 | 66 |
|
62 | 67 | <build> |
63 | 68 | <plugins> |
| 69 | + <plugin> |
| 70 | + <groupId>org.apache.maven.plugins</groupId> |
| 71 | + <artifactId>maven-deploy-plugin</artifactId> |
| 72 | + <configuration> |
| 73 | + <skip>true</skip> |
| 74 | + </configuration> |
| 75 | + </plugin> |
| 76 | + <plugin> |
| 77 | + <groupId>com.microsoft.azure</groupId> |
| 78 | + <artifactId>azure-functions-maven-plugin</artifactId> |
| 79 | + <version>${azure.functions.maven.plugin.version}</version> |
| 80 | + <configuration> |
| 81 | + <appName>${functionAppName}</appName> |
| 82 | + <hostJson>${project.basedir}/src/main/resources/host.json</hostJson> |
| 83 | + <runtime> |
| 84 | + <os>linux</os> |
| 85 | + <javaVersion>21</javaVersion> |
| 86 | + </runtime> |
| 87 | + <funcPort>7072</funcPort> |
| 88 | + <appSettings> |
| 89 | + <property> |
| 90 | + <name>FUNCTIONS_EXTENSION_VERSION</name> |
| 91 | + <value>~4</value> |
| 92 | + </property> |
| 93 | + </appSettings> |
| 94 | + </configuration> |
| 95 | + <executions> |
| 96 | + <execution> |
| 97 | + <id>package-functions</id> |
| 98 | + <goals> |
| 99 | + <goal>package</goal> |
| 100 | + </goals> |
| 101 | + </execution> |
| 102 | + </executions> |
| 103 | + </plugin> |
64 | 104 | <plugin> |
65 | 105 | <groupId>org.springframework.boot</groupId> |
66 | 106 | <artifactId>spring-boot-maven-plugin</artifactId> |
|
72 | 112 | </exclude> |
73 | 113 | </excludes> |
74 | 114 | </configuration> |
| 115 | + <dependencies> |
| 116 | + <dependency> |
| 117 | + <groupId>org.springframework.boot.experimental</groupId> |
| 118 | + <artifactId>spring-boot-thin-layout</artifactId> |
| 119 | + <version>${spring-boot-thin-layout.version}</version> |
| 120 | + </dependency> |
| 121 | + </dependencies> |
75 | 122 | </plugin> |
76 | 123 | </plugins> |
77 | 124 | </build> |
78 | 125 |
|
| 126 | + <profiles> |
| 127 | + <profile> |
| 128 | + <id>deploy</id> |
| 129 | + <properties> |
| 130 | + <functionAppRegion>koreacentral</functionAppRegion> |
| 131 | + <functionResourceGroup>java-functions-group</functionResourceGroup> |
| 132 | + </properties> |
| 133 | + <build> |
| 134 | + <plugins> |
| 135 | + <plugin> |
| 136 | + <groupId>com.microsoft.azure</groupId> |
| 137 | + <artifactId>azure-functions-maven-plugin</artifactId> |
| 138 | + <configuration> |
| 139 | + <appName>${functionAppName}</appName> |
| 140 | + <resourceGroup>${functionResourceGroup}</resourceGroup> |
| 141 | + <region>${functionAppRegion}</region> |
| 142 | + </configuration> |
| 143 | + </plugin> |
| 144 | + </plugins> |
| 145 | + </build> |
| 146 | + </profile> |
| 147 | + </profiles> |
| 148 | + |
79 | 149 | </project> |
0 commit comments