Skip to content

Commit

Permalink
Updategrpc (Azure#125)
Browse files Browse the repository at this point in the history
* Dependency and plugin updates
  • Loading branch information
pragnagopa authored Jun 13, 2018
1 parent 98e653a commit 62fc397
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 14 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure.functions</groupId>
<artifactId>azure-functions-java-worker</artifactId>
<version>1.0.0-beta-5</version>
<version>1.0.0-beta-6</version>
<packaging>jar</packaging>

<name>Microsoft Azure Functions Java Runtime</name>
Expand Down Expand Up @@ -49,32 +49,32 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.4.0</version>
<version>3.5.1</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.6.1</version>
<version>1.12.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.6.1</version>
<version>1.12.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>1.6.1</version>
<version>1.12.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.2-jre</version>
<version>25.1-jre</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.6</version>
<version>3.7</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
Expand All @@ -84,17 +84,17 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.5</version>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.5</version>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand All @@ -116,7 +116,7 @@
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.0</version>
<version>0.5.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.4.0:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
Expand Down

0 comments on commit 62fc397

Please sign in to comment.