Skip to content

Commit e006336

Browse files
committed
support openfunction framework
Signed-off-by: [email protected]
1 parent 6312e64 commit e006336

File tree

115 files changed

+3167
-6794
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+3167
-6794
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ contents:
6363
```java
6464
package com.example;
6565

66-
import com.google.cloud.functions.HttpFunction;
67-
import com.google.cloud.functions.HttpRequest;
68-
import com.google.cloud.functions.HttpResponse;
66+
import HttpFunction;
67+
import HttpRequest;
68+
import HttpResponse;
6969

7070
public class HelloWorld implements HttpFunction {
7171
@Override
@@ -93,8 +93,8 @@ contents:
9393
```java
9494
package com.example;
9595

96-
import com.google.cloud.functions.Context;
97-
import com.google.cloud.functions.RawBackgroundFunction;
96+
import Context;
97+
import RawBackgroundFunction;
9898
import com.google.gson.Gson;
9999
import com.google.gson.JsonObject;
100100
import java.util.logging.Logger;
@@ -120,8 +120,8 @@ contents:
120120
```java
121121
package com.example;
122122

123-
import com.google.cloud.functions.BackgroundFunction;
124-
import com.google.cloud.functions.Context;
123+
import BackgroundFunction;
124+
import Context;
125125
import java.util.Map;
126126
import java.util.logging.Logger;
127127

functions-framework-api/pom.xml

+39-70
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,24 @@
1515
-->
1616
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
1717
<modelVersion>4.0.0</modelVersion>
18+
<dependencies>
19+
<dependency>
20+
<groupId>io.cloudevents</groupId>
21+
<artifactId>cloudevents-api</artifactId>
22+
<version>2.3.0</version>
23+
<scope>compile</scope>
24+
</dependency>
25+
</dependencies>
1826

1927
<parent>
2028
<groupId>org.sonatype.oss</groupId>
2129
<artifactId>oss-parent</artifactId>
2230
<version>9</version>
2331
</parent>
2432

25-
<groupId>com.google.cloud.functions</groupId>
33+
<groupId>dev.openfunction.functions</groupId>
2634
<artifactId>functions-framework-api</artifactId>
27-
<version>1.0.5-SNAPSHOT</version>
35+
<version>1.0.0-SNAPSHOT</version>
2836

2937
<properties>
3038
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -41,24 +49,10 @@
4149
</license>
4250
</licenses>
4351

44-
<scm>
45-
<connection>scm:git:https://github.com/GoogleCloudPlatform/functions-framework-java.git</connection>
46-
<developerConnection>scm:git:[email protected]:GoogleCloudPlatform/functions-framework-java.git</developerConnection>
47-
<url>https://github.com/GoogleCloudPlatform/functions-framework-java</url>
48-
<tag>HEAD</tag>
49-
</scm>
50-
51-
<dependencies>
52-
<dependency>
53-
<groupId>io.cloudevents</groupId>
54-
<artifactId>cloudevents-api</artifactId>
55-
<version>2.0.0.RC2</version>
56-
</dependency>
57-
</dependencies>
58-
5952
<build>
6053
<plugins>
6154
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
6256
<artifactId>maven-compiler-plugin</artifactId>
6357
<version>${maven-compiler-plugin.version}</version>
6458
<configuration>
@@ -67,6 +61,7 @@
6761
</configuration>
6862
</plugin>
6963
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
7065
<artifactId>maven-javadoc-plugin</artifactId>
7166
<version>${maven-javadoc-plugin.version}</version>
7267
</plugin>
@@ -99,6 +94,31 @@
9994
</execution>
10095
</executions>
10196
</plugin>
97+
<plugin>
98+
<groupId>org.sonatype.plugins</groupId>
99+
<artifactId>nexus-staging-maven-plugin</artifactId>
100+
<version>1.6.7</version>
101+
<extensions>true</extensions>
102+
<configuration>
103+
<serverId>sonatype-nexus-staging</serverId>
104+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
105+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
106+
</configuration>
107+
</plugin>
108+
<plugin>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-gpg-plugin</artifactId>
111+
<version>1.5</version>
112+
<executions>
113+
<execution>
114+
<id>sign-artifacts</id>
115+
<phase>verify</phase>
116+
<goals>
117+
<goal>sign</goal>
118+
</goals>
119+
</execution>
120+
</executions>
121+
</plugin>
102122
</plugins>
103123
<pluginManagement>
104124
<plugins>
@@ -132,62 +152,11 @@
132152
<distributionManagement>
133153
<snapshotRepository>
134154
<id>sonatype-nexus-snapshots</id>
135-
<name>Sonatype Nexus Snapshots</name>
136-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
155+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
137156
</snapshotRepository>
138157
<repository>
139158
<id>sonatype-nexus-staging</id>
140-
<name>Nexus Release Repository</name>
141-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
159+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
142160
</repository>
143161
</distributionManagement>
144-
<profiles>
145-
<profile>
146-
<id>sonatype-oss-release</id>
147-
<build>
148-
<plugins>
149-
<plugin>
150-
<groupId>org.apache.maven.plugins</groupId>
151-
<artifactId>maven-source-plugin</artifactId>
152-
<version>3.2.1</version>
153-
<executions>
154-
<execution>
155-
<id>attach-sources</id>
156-
<goals>
157-
<goal>jar-no-fork</goal>
158-
</goals>
159-
</execution>
160-
</executions>
161-
</plugin>
162-
<plugin>
163-
<groupId>org.apache.maven.plugins</groupId>
164-
<artifactId>maven-javadoc-plugin</artifactId>
165-
<version>${maven-javadoc-plugin.version}</version>
166-
<executions>
167-
<execution>
168-
<id>attach-javadocs</id>
169-
<goals>
170-
<goal>jar</goal>
171-
</goals>
172-
</execution>
173-
</executions>
174-
</plugin>
175-
<plugin>
176-
<groupId>org.apache.maven.plugins</groupId>
177-
<artifactId>maven-gpg-plugin</artifactId>
178-
<version>1.6</version>
179-
<executions>
180-
<execution>
181-
<id>sign-artifacts</id>
182-
<phase>verify</phase>
183-
<goals>
184-
<goal>sign</goal>
185-
</goals>
186-
</execution>
187-
</executions>
188-
</plugin>
189-
</plugins>
190-
</build>
191-
</profile>
192-
</profiles>
193162
</project>

functions-framework-api/src/main/java/com/google/cloud/functions/BackgroundFunction.java

-62
This file was deleted.

functions-framework-api/src/main/java/com/google/cloud/functions/CloudEventsFunction.java

-20
This file was deleted.

functions-framework-api/src/main/java/com/google/cloud/functions/Context.java

-67
This file was deleted.

functions-framework-api/src/main/java/com/google/cloud/functions/HttpFunction.java

-30
This file was deleted.

0 commit comments

Comments
 (0)