85 lines
3.0 KiB
XML
85 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>dev.langchain4j</groupId>
|
|
<artifactId>langchain4j-parent</artifactId>
|
|
<version>1.19.0-beta29-SNAPSHOT</version>
|
|
<relativePath>../langchain4j-parent/pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>langchain4j-google-genai</artifactId>
|
|
<name>LangChain4j :: Integration :: Google GenAI</name>
|
|
|
|
<properties>
|
|
<enforcer.skipRules>dependencyConvergence,requireUpperBoundDeps</enforcer.skipRules>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.google.genai</groupId>
|
|
<artifactId>google-genai</artifactId>
|
|
<version>1.62.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>dev.langchain4j</groupId>
|
|
<artifactId>langchain4j-core</artifactId>
|
|
<version>1.19.0-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-core</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
|
|
<!--
|
|
Workaround for a packaging bug in google-genai: the SDK shades jackson-module-kotlin into
|
|
com.google.genai.shaded.* but its META-INF/services/com.fasterxml.jackson.databind.Module
|
|
still references the un-shaded com.fasterxml.jackson.module.kotlin.KotlinModule. Any consumer
|
|
that calls ObjectMapper.findAndRegisterModules() (langchain4j-core's JacksonJsonCodec does)
|
|
then trips ServiceConfigurationError. Adding the real artifact at runtime makes the class
|
|
available again.
|
|
-->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
<artifactId>jackson-module-kotlin</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<!-- test dependencies -->
|
|
|
|
<dependency>
|
|
<groupId>dev.langchain4j</groupId>
|
|
<artifactId>langchain4j-core</artifactId>
|
|
<version>1.19.0-SNAPSHOT</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>dev.langchain4j</groupId>
|
|
<artifactId>langchain4j</artifactId>
|
|
<version>1.19.0-SNAPSHOT</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>dev.langchain4j</groupId>
|
|
<artifactId>langchain4j</artifactId>
|
|
<version>1.19.0-SNAPSHOT</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</project>
|