Skip to content

Commit cf552c9

Browse files
Adjust region tags for Gradle functions sample. (GoogleCloudPlatform#3410)
Include the `package` declaration in the Java file, and exclude the copyright notice in build.gradle.
1 parent d1a60c9 commit cf552c9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

functions/helloworld/hello-http-gradle/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// START functions_build_gradle
1516
apply plugin: 'java'
1617

1718
repositories {
@@ -38,3 +39,4 @@ jar {
3839
// There must be a jar {} section, though the archiveBaseName does not have to be 'function'.
3940
archiveBaseName = 'function'
4041
}
42+
// END functions_build_gradle

functions/helloworld/hello-http-gradle/src/main/java/functions/HelloHttp.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
package functions;
18-
1917
// [START functions_helloworld_http]
18+
package functions;
2019

2120
import com.google.cloud.functions.HttpFunction;
2221
import com.google.cloud.functions.HttpRequest;

0 commit comments

Comments
 (0)