Почему gradle не может найти зависимость?JAVA

Программисты JAVA общаются здесь
Ответить
Anonymous
 Почему gradle не может найти зависимость?

Сообщение Anonymous »

Я не обычный Java-программист.
Вот мой build.gradle:

Код: Выделить всё

plugins {
id 'java'
id 'org.springframework.boot' version '3.3.5'
id 'io.spring.dependency-management' version '1.1.6'
}

group = 'com.amkhrjee'
version = '0.0.1'

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

repositories {
mavenCentral()
}

dependencies {
implementation 'com.google.firebase:firebase-admin:9.4.1'
implementation 'com.google.firebase:firebase-auth:23.1.0'

implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

tasks.named('test') {
useJUnitPlatform()
}
Вот какая ошибка:

Код: Выделить всё

Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find com.google.firebase:firebase-auth:23.1.0.
Required by:
root project :

Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Вот зависимость, которую я использую: https://mvnrepository.com/artifact/com. ... uth/23.1.0
Я не могу понять, что не так с моей конфигурацией.
P.S. Пробовал добавлять google() в репозитории - не помогло.

Подробнее здесь: https://stackoverflow.com/questions/791 ... dependency
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»