Skip to content

Commit b0296d0

Browse files
committed
1. Removed maven WAR plugin
2. Renaming java sample classes to match the tags
1 parent 42c7674 commit b0296d0

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.vscode
22
node_modules
33
java/target
4-
.idea
4+
.idea

java/pom.xml

+1-19
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,4 @@
2222
</dependency>
2323
</dependencies>
2424

25-
<build>
26-
<plugins>
27-
<plugin>
28-
<groupId>org.apache.maven.plugins</groupId>
29-
<artifactId>maven-war-plugin</artifactId>
30-
<version>3.4.0</version>
31-
</plugin>
32-
</plugins>
33-
<resources>
34-
<resource>
35-
<directory>java/src/main/resources</directory>
36-
<includes>
37-
<include>.env</include>
38-
</includes>
39-
</resource>
40-
</resources>
41-
</build>
42-
43-
</project>
25+
</project>

java/src/main/java/com/example/gemini/TextGenerationOnlyPrompt.java renamed to java/src/main/java/com/example/gemini/TextGenTextOnlyPrompt.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import java.io.IOException;
2424

25-
public class TextGenerationOnlyPrompt {
25+
public class TextGenTextOnlyPrompt {
2626
public static void main(String[] args) throws IOException, HttpException {
2727
// [START text_gen_text_only_prompt]
2828
Client client = new Client();

java/src/main/java/com/example/gemini/TextGenerationOnlyPromptStreaming.java renamed to java/src/main/java/com/example/gemini/TextGenTextOnlyPromptStreaming.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import java.io.IOException;
2525

26-
public class TextGenerationOnlyPromptStreaming {
26+
public class TextGenTextOnlyPromptStreaming {
2727
public static void main(String[] args) throws IOException, HttpException {
2828
// [START text_gen_text_only_prompt_streaming]
2929
Client client = new Client();

0 commit comments

Comments
 (0)