Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ming zheng
Spring Cloud Function
Commits
5c84b100
Unverified
Commit
5c84b100
authored
5 years ago
by
Oleg Zhurakousky
Committed by
GitHub
5 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #433 from miller79/sample-updates
function-sample-azure cleanup
parents
01360df4
75019ab2
main
3.0.x
3.1.0.M1-marcin
3.1.x
3.2.x
4.x
cloudevents
fix-artifact-version
fix-build-version
marcin-sleuth
newFR
new_docs_for_old_train
rsocket
spencergibb-patch-1
spencergibb-reenable-routingbrokertests
spencergibb-routing-tcp
spencergibb-rsocket-routing-version-0-1-0
temp-master
v3.2.1
v3.2.0
v3.2.0-RC1
v3.2.0-M3
v3.2.0-M2
v3.2.0-M1
v3.1.6
v3.1.5
v3.1.4
v3.1.3
v3.1.2
v3.1.1
v3.1.0
v3.1.0.M1
v3.1.0-RC1
v3.1.0-M5
v3.1.0-M4
v3.1.0-M3
v3.1.0-M2
v3.0.14.RELEASE
v3.0.13.RELEASE
v3.0.12.RELEASE
v3.0.11.RELEASE
v3.0.10.RELEASE
v3.0.9.RELEASE
v3.0.8.RELEASE
v3.0.7.RELEASE
v3.0.6.RELEASE
v3.0.5.RELEASE
v3.0.4.RELEASE
v3.0.3.RELEASE
v3.0.2.RELEASE
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spring-cloud-function-samples/function-sample-azure/README.adoc
+1
-1
...-cloud-function-samples/function-sample-azure/README.adoc
spring-cloud-function-samples/function-sample-azure/pom.xml
+24
-24
spring-cloud-function-samples/function-sample-azure/pom.xml
with
25 additions
and
25 deletions
+25
-25
spring-cloud-function-samples/function-sample-azure/README.adoc
+
1
-
1
View file @
5c84b100
...
...
@@ -4,7 +4,7 @@ You can run this sample locally, just like the other Spring Cloud Function sampl
mvn spring-boot:run
----
and `curl -H "Content-Type: application/json" localhost:
8080
/uppercase -d '{"value": "hello foobar"}'`.
and `curl -H "Content-Type: application/json" localhost:
7071
/uppercase -d '{"value": "hello foobar"}'`.
Given that our function takes POJO `Function<Foo, Bar> uppercase()` and it's input is JSON we need to
provide the appropriate content-type (in this case `application/json`).
...
...
This diff is collapsed.
Click to expand it.
spring-cloud-function-samples/function-sample-azure/pom.xml
+
24
-
24
View file @
5c84b100
...
...
@@ -19,14 +19,14 @@
</parent>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
<java.version>
1.8
</java.version>
<functionAppName>
function-sample-azure
</functionAppName>
<functionAppRegion>
westus
</functionAppRegion>
<functionResourceGroup>
java-function-group
</functionResourceGroup>
<stagingDirectory>
${project.build.directory}/azure-functions/${functionAppName}
</stagingDirectory>
<start-class>
example.Config
</start-class>
<azure.functions.maven.plugin.version>
1.3.4
</azure.functions.maven.plugin.version>
<azure.functions.java.library.version>
1.3.0
</azure.functions.java.library.version>
<wrapper.version>
1.0.23.RELEASE
</wrapper.version>
</properties>
...
...
@@ -58,6 +58,11 @@
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
com.microsoft.azure.functions
</groupId>
<artifactId>
azure-functions-java-library
</artifactId>
<version>
${azure.functions.java.library.version}
</version>
</dependency>
</dependencies>
</dependencyManagement>
...
...
@@ -84,21 +89,10 @@
</filesets>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
3.0.2
</version>
</plugin>
<plugin>
<groupId>
com.microsoft.azure
</groupId>
<artifactId>
azure-functions-maven-plugin
</artifactId>
<version>
1.3.4
</version>
<dependencies>
<dependency>
<groupId>
javax.xml.bind
</groupId>
<artifactId>
jaxb-api
</artifactId>
<version>
2.3.1
</version>
</dependency>
</dependencies>
<version>
${azure.functions.maven.plugin.version}
</version>
</plugin>
</plugins>
</pluginManagement>
...
...
@@ -127,6 +121,7 @@
<overWriteSnapshots>
false
</overWriteSnapshots>
<overWriteIfNewer>
true
</overWriteIfNewer>
<includeScope>
runtime
</includeScope>
<excludeArtifactIds>
azure-functions-java-library
</excludeArtifactIds>
</configuration>
</execution>
</executions>
...
...
@@ -139,14 +134,19 @@
<appName>
${functionAppName}
</appName>
<region>
${functionAppRegion}
</region>
<appSettings>
<property>
<name>
FUNCTIONS_EXTENSION_VERSION
</name>
<value>
beta
</value>
</property>
<property>
<name>
MSDEPLOY_RENAME_LOCKED_FILES
</name>
<value>
1
</value>
</property>
<!-- Run Azure Function from package file by default -->
<property>
<name>
WEBSITE_RUN_FROM_PACKAGE
</name>
<value>
1
</value>
</property>
<property>
<name>
FUNCTIONS_EXTENSION_VERSION
</name>
<value>
~2
</value>
</property>
<property>
<name>
FUNCTIONS_WORKER_RUNTIME
</name>
<value>
java
</value>
</property>
</appSettings>
</configuration>
<executions>
...
...
@@ -170,7 +170,7 @@
<configuration>
<overwrite>
true
</overwrite>
<outputDirectory>
${
project.build.directory}/azure-functions/${functionAppName
}
${
stagingDirectory
}
</outputDirectory>
<resources>
<resource>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help