Skip to content

Commit c7908ca

Browse files
author
Ace Nassri
authored
GCF file split (munge): slack (GoogleCloudPlatform#2662)
1 parent 833ec9d commit c7908ca

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

functions/slack/pom.xml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<modelVersion>4.0.0</modelVersion>
2323

2424
<groupId>com.example.cloud.functions</groupId>
25-
<artifactId>functions-snippets-slack</artifactId>
25+
<artifactId>functions-slack</artifactId>
2626

2727
<parent>
2828
<groupId>com.google.cloud.samples</groupId>
@@ -66,13 +66,6 @@
6666
<version>3.4.2</version>
6767
</dependency>
6868

69-
<!-- Required for com.example.functions.firebase.FirebaseFirestoreReactive -->
70-
<dependency>
71-
<groupId>com.google.cloud</groupId>
72-
<artifactId>google-cloud-firestore</artifactId>
73-
<version>1.33.0</version>
74-
</dependency>
75-
7669
<!-- The following dependencies are only required for testing -->
7770
<dependency>
7871
<groupId>junit</groupId>
@@ -88,13 +81,6 @@
8881
</dependency>
8982

9083
<!-- Required for mocking env vars -->
91-
<dependency>
92-
<groupId>com.github.stefanbirkner</groupId>
93-
<artifactId>system-rules</artifactId>
94-
<version>1.19.0</version>
95-
<scope>test</scope>
96-
</dependency>
97-
9884
<dependency>
9985
<groupId>com.google.truth</groupId>
10086
<artifactId>truth</artifactId>
@@ -167,6 +153,9 @@
167153
<groupId>com.google.cloud.functions</groupId>
168154
<artifactId>function-maven-plugin</artifactId>
169155
<version>0.9.1</version>
156+
<configuration>
157+
<functionTarget>functions.SlackSlashCommand</functionTarget>
158+
</configuration>
170159
</plugin>
171160
<plugin>
172161
<groupId>org.apache.maven.plugins</groupId>

functions/slack/src/main/java/com/example/functions/slack/SlackSlashCommand.java renamed to functions/slack/src/main/java/functions/SlackSlashCommand.java

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

17-
package com.example.functions.slack;
17+
package functions;
1818

1919
import com.github.seratch.jslack.app_backend.SlackSignature;
2020
import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport;

functions/slack/src/test/java/com/example/functions/slack/SlackSlashCommandTest.java renamed to functions/slack/src/test/java/functions/SlackSlashCommandTest.java

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

17-
package com.example.functions.slack;
17+
package functions;
1818

1919
import static com.google.common.truth.Truth.assertThat;
2020
import static org.mockito.Mockito.times;
2121
import static org.mockito.Mockito.verify;
2222
import static org.powermock.api.mockito.PowerMockito.mock;
2323
import static org.powermock.api.mockito.PowerMockito.when;
2424

25-
import com.example.functions.slack.SlackSlashCommand;
2625
import com.github.seratch.jslack.app_backend.SlackSignature;
2726
import com.google.api.client.googleapis.json.GoogleJsonResponseException;
2827
import com.google.cloud.functions.HttpRequest;

0 commit comments

Comments
 (0)