Skip to content

Cannot install google-genai library #4406

@RyanHowell30

Description

@RyanHowell30

Tried following the documentation and changing the BoM versions for the spring-ai-google-genai module. Nothing gets installed an registered in gradle libraries.

Versions tried:
1.0.2 as per the official Spring documentation
1.1.0-SNAPSHOT
1.1.10-M1 (https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-google-genai)

`plugins {
id 'java'
id 'org.springframework.boot' version '3.5.5'
id 'io.spring.dependency-management' version '1.1.7'
}

ext {
set('springAiVersion', "1.0.2")
}

group = 'com.abc.example'
version = '0.0.1-SNAPSHOT'
description = 'gen-ai-spring'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

repositories {
mavenCentral()
}

dependencyManagement {
imports {
mavenBom "org.springframework.ai:spring-ai-bom:${springAiVersion}"
}
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.ai:spring-ai-google-genai'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

tasks.named('test') {
useJUnitPlatform()
}`

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions