File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed
gemini-gson/src/main/java/swiss/ameri/gemini/gson
gemini-tester/src/main/java/swiss/ameri/gemini/tester Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ public class GsonJsonParser implements JsonParser {
1212
1313 /**
1414 * Create a {@link JsonParser} with a custom {@link Gson}.
15+ *
16+ * @param gson instance to use
1517 */
1618 public GsonJsonParser (Gson gson ) {
1719 this .gson = gson ;
Original file line number Diff line number Diff line change 55import swiss .ameri .gemini .spi .JsonParser ;
66
77import java .util .List ;
8- import java .util .concurrent .ExecutionException ;
98import java .util .concurrent .TimeUnit ;
10- import java .util .concurrent .TimeoutException ;
119
10+ /**
11+ * Example program to test the {@link GenAi} functionality.
12+ */
1213public class GeminiTester {
1314
14- public static void main (String [] args ) throws ExecutionException , InterruptedException , TimeoutException {
15+ private GeminiTester () {
16+ throw new AssertionError ("Not instantiable" );
17+ }
18+
19+ /**
20+ * Entry point. takes the Gemini API key as argument. See <a href="https://aistudio.google.com/app/apikey">aistuio.google.com</a> to generate a new API key.
21+ *
22+ * @param args should receive the API key as argument
23+ * @throws Exception if something goes wrong
24+ */
25+ public static void main (String [] args ) throws Exception {
1526 JsonParser parser = new GsonJsonParser ();
1627 String apiKey = args [0 ];
1728
Original file line number Diff line number Diff line change 4646
4747 <central-publishing-maven-plugin .version>0.4.0</central-publishing-maven-plugin .version>
4848 <maven-gpg-plugin .version>3.2.4</maven-gpg-plugin .version>
49+ <maven-source-plugin .version>3.3.1</maven-source-plugin .version>
50+ <maven-javadoc-plugin .version>3.7.0</maven-javadoc-plugin .version>
4951 </properties >
5052
5153 <build >
5254 <plugins >
53-
5455 <plugin >
56+ <groupId >org.apache.maven.plugins</groupId >
5557 <artifactId >maven-source-plugin</artifactId >
58+ <version >${maven-source-plugin.version} </version >
5659 <executions >
5760 <execution >
5861 <id >attach-sources</id >
6467 </executions >
6568 </plugin >
6669 <plugin >
70+ <groupId >org.apache.maven.plugins</groupId >
6771 <artifactId >maven-javadoc-plugin</artifactId >
72+ <version >${maven-javadoc-plugin.version} </version >
6873 <executions >
6974 <execution >
7075 <id >attach-javadocs</id >
You can’t perform that action at this time.
0 commit comments