Skip to content

Commit 38fcee1

Browse files
authored
Create README.md with example usage instructions
Added instructions for running examples in README.
1 parent 8f2d67d commit 38fcee1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

examples/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Examples
2+
3+
You can run these examples using:
4+
5+
git clone https://github.com/googleapis/java-genai.git
6+
cd java-genai
7+
mvn clean install -Djacoco.skip=true -DskipTests
8+
9+
cd examples
10+
export GOOGLE_API_KEY=...
11+
mvn compile exec:java -Dexec.mainClass="com.google.genai.examples.GenerateContent"
12+
13+
The `jacoco.skip` is required due to [issue #756](https://github.com/googleapis/java-genai/issues/756), and the `skipTests` just makes it faster.
14+
15+
[Issue #801](https://github.com/googleapis/java-genai/issues/801) may avoid having to first `install` in the future.

0 commit comments

Comments
 (0)