From a94a05a620a05057255f80206e8f2f6b480acb58 Mon Sep 17 00:00:00 2001 From: pragnagopa Date: Wed, 13 Jun 2018 14:09:15 -0700 Subject: [PATCH 1/3] Dependency and plugin updates --- README.md | 17 +++++++++++++++++ pom.xml | 22 +++++++++++----------- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 9baf7d05..80af78e0 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,23 @@ And the binary will be built to `"./azure-functions-java-worker/target/azure-fun If you have updated the core interface (azure-functions-java-core), a `mvn clean install` is required for your test functions app to reference the latest core package. +## Updating Dependencies and Plugins +* Update dependencies +``` +mvn versions:use-latest-versions +``` +* Update plugins +``` +mvn versions:display-plugin-updates + +``` +For each of the plugin that displayed, update pom.xml + +* Update version + +``` +mvn release:update-versions +``` ## Debug The Java worker alone is not enough to establish the functions app, we also need the support from [Azure Functions Host](https://github.com/Azure/azure-functions-host). You may either use a published host CLI or use the in-development host. But both of the methods require you to attach to the java process if you want a step-by-step debugging experience. diff --git a/pom.xml b/pom.xml index a7a51e7c..ce8e6213 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.microsoft.azure.functions azure-functions-java-worker - 1.0.0-beta-5 + 1.0.0-beta-6-SNAPSHOT jar Microsoft Azure Functions Java Runtime @@ -49,32 +49,32 @@ com.google.protobuf protobuf-java - 3.4.0 + 3.5.1 io.grpc grpc-protobuf - 1.6.1 + 1.12.0 io.grpc grpc-stub - 1.6.1 + 1.12.0 io.grpc grpc-netty - 1.6.1 + 1.12.0 com.google.guava guava - 23.2-jre + 25.1-jre org.apache.commons commons-lang3 - 3.6 + 3.7 commons-cli @@ -84,17 +84,17 @@ com.fasterxml.jackson.core jackson-databind - 2.9.5 + 2.9.6 com.fasterxml.jackson.core jackson-annotations - 2.9.5 + 2.9.6 javax.annotation javax.annotation-api - 1.3.1 + 1.3.2 junit @@ -116,7 +116,7 @@ org.xolstice.maven.plugins protobuf-maven-plugin - 0.5.0 + 0.5.1 com.google.protobuf:protoc:3.4.0:exe:${os.detected.classifier} grpc-java From 6d390c64e9da834046541ca2137c20a1a9758777 Mon Sep 17 00:00:00 2001 From: pragnagopa Date: Wed, 13 Jun 2018 14:10:47 -0700 Subject: [PATCH 2/3] Fix version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ce8e6213..6b209110 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.microsoft.azure.functions azure-functions-java-worker - 1.0.0-beta-6-SNAPSHOT + 1.0.0-beta-6 jar Microsoft Azure Functions Java Runtime From 6b9dd9b5b9b64422b384e6d92d5d168ba9e72056 Mon Sep 17 00:00:00 2001 From: pragnagopa Date: Wed, 13 Jun 2018 14:15:20 -0700 Subject: [PATCH 3/3] Update appveyor.yml --- appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 103a9197..f26aba76 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -27,12 +27,12 @@ build_script: - ps: | $buildNumber = 0 if($env:APPVEYOR_REPO_TAG -eq "true") { - $buildNumber = $env:APPVEYOR_REPO_TAG_NAME - Write-Host “Found git tag. Setting package suffix to '$buildNumber'" + $buildNumber = "" + Write-Host “Found git tag. Not setting package suffix" } else { $buildNumber = "-$env:APPVEYOR_BUILD_NUMBER" - Write-Host “No git tag found. Setting package suffix to '$buildNumber'" + Write-Host “git tag not found. Setting package suffix to '$buildNumber'" } nuget pack ./tools/AzureFunctionsJavaWorker.nuspec -Properties versionsuffix=$buildNumber