@Foxik1

Почему ошибка org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.google.gms.google-services'] was not found in any of the following sour?

Пробую сделать что-то в javafx с firebase но получаю ошибку

Plugin [id: 'com.google.gms.google-services'] was not found in any of the following sources:
 
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
 
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.google.gms.google-services'] was not found in any of the following sources:

Все ошибки (Pastebin)

buid.gradle

plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'org.beryx.jlink' version '2.25.0'
id 'com.google.gms.google-services'
}

group 'com.foxik'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

ext {
junitVersion = '5.8.2'
}

sourceCompatibility = '19'
targetCompatibility = '19'

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

application {
mainModule = 'com.foxik.laucnher'
mainClass = 'com.foxik.laucnher.HelloApplication'
}

javafx {
version = '19-ea+7'
modules = ['javafx.controls', 'javafx.fxml']
}

dependencies {
classpath 'com.google.gms:google-services:4.3.14'
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
implementation 'com.google.firebase:firebase-database:20.1.0'
}

test {
useJUnitPlatform()
}

jlink {
imageZip = project.file("${buildDir}/distributions/app-${javafx.platform.classifier}.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'app'
}
}

jlinkZip {
group = 'distribution'
}
  • Вопрос задан
  • 272 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы