Skip to content

Commit

Permalink
[PAGOPA-2017] chore: Upgrade ExtensionBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-ang committed Aug 21, 2024
1 parent 96383b5 commit c7cf50d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion host.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[2.*, 3.0.0)"
"version": "[4.0.0, 5.0.0)"
},
"extensions": {
"http": {
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<azure.functions.maven.plugin.version>1.15.0</azure.functions.maven.plugin.version>
<azure.functions.java.library.version>1.4.2</azure.functions.java.library.version>
<azure.functions.maven.plugin.version>1.27.0</azure.functions.maven.plugin.version>
<azure.functions.java.library.version>3.1.0</azure.functions.java.library.version>
<functionAppName>com.microsoft.azure-20220215182005862</functionAppName>
<resteasy.version>3.15.3.Final</resteasy.version>
</properties>
Expand Down Expand Up @@ -245,7 +245,7 @@
<appSettings>
<property>
<name>FUNCTIONS_EXTENSION_VERSION</name>
<value>~3</value>
<value>~4</value>
</property>
</appSettings>
<resourceGroup>java-functions-group</resourceGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ public void processBizEventToReceipt(
@CosmosDBTrigger(
name = "BizEventDatastore",
databaseName = "db",
collectionName = "biz-events",
leaseCollectionName = "biz-events-leases",
leaseCollectionPrefix = "materialized",
createLeaseCollectionIfNotExists = true,
containerName = "biz-events",
leaseContainerName = "biz-events-leases",
leaseContainerPrefix = "materialized",
createLeaseContainerIfNotExists = true,
maxItemsPerInvocation = 100,
connectionStringSetting = "COSMOS_BIZ_EVENT_CONN_STRING")
connection = "COSMOS_BIZ_EVENT_CONN_STRING")
List<BizEvent> items,
@CosmosDBOutput(
name = "ReceiptDatastore",
databaseName = "db",
collectionName = "receipts",
connectionStringSetting = "COSMOS_RECEIPTS_CONN_STRING")
containerName = "receipts",
connection = "COSMOS_RECEIPTS_CONN_STRING")
OutputBinding<List<Receipt>> documentdb,
final ExecutionContext context) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ public void run(
@CosmosDBTrigger(
name = "CartReceiptDatastore",
databaseName = "db",
collectionName = "cart-for-receipts",
leaseCollectionName = "cart-for-receipts-leases",
connectionStringSetting = "COSMOS_RECEIPTS_CONN_STRING",
createLeaseCollectionIfNotExists = true)
containerName = "cart-for-receipts",
leaseContainerName = "cart-for-receipts-leases",
connection = "COSMOS_RECEIPTS_CONN_STRING",
createLeaseContainerIfNotExists = true)
List<CartForReceipt> listCartForReceipt,
@CosmosDBOutput(
name = "ReceiptDatastore",
databaseName = "db",
collectionName = "receipts",
connectionStringSetting = "COSMOS_RECEIPTS_CONN_STRING")
containerName = "receipts",
connection = "COSMOS_RECEIPTS_CONN_STRING")
OutputBinding<List<Receipt>> receiptDocumentdb,
@CosmosDBOutput(
name = "CartReceiptDatastoreOutput",
databaseName = "db",
collectionName = "cart-for-receipts",
connectionStringSetting = "COSMOS_RECEIPTS_CONN_STRING")
containerName = "cart-for-receipts",
connection = "COSMOS_RECEIPTS_CONN_STRING")
OutputBinding<List<CartForReceipt>> cartForReceiptDocumentdb,
final ExecutionContext context
) {
Expand Down

0 comments on commit c7cf50d

Please sign in to comment.