Код: Выделить всё
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'org.openjfx.javafxplugin' version '0.0.9'
}
javafx {
version = "19"
modules = [ 'javafx.controls' ]
}
application{
mainClass="org.example.Main"
}
repositories {
mavenCentral()
maven {
url "https://maven.google.com"
}
}
sourceSets {
main {
resources {
srcDirs = ["src/main/resources"]
}
}
}
jar {
manifest {
attributes 'Main-Class': 'org.example.Main'
}
}
shadowJar {
mergeServiceFiles()
}
dependencies {
// Google OAuth client
implementation 'com.google.oauth-client:google-oauth-client:1.34.1'
// Jackson2 support for Google OAuth client
implementation 'com.google.oauth-client:google-oauth-client-jackson2:1.34.1'
// Google API services OAuth2 (latest available version in Maven Central)
implementation 'com.google.apis:google-api-services-oauth2:v2-rev20190307-1.30.10'
// BCrypt for password hashing
implementation "org.mindrot:jbcrypt:0.4"
// Microsoft SQL Server JDBC driver
implementation 'com.microsoft.sqlserver:mssql-jdbc:11.2.0.jre8'
// IntelliJ Forms runtime
implementation group: 'com.intellij', name: 'forms_rt', version: '7.0.3'
// JUnit for testing
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
Код: Выделить всё
import com.google.api.client.auth.oauth2.GoogleAuthorizationCodeFlow;
import com.google.api.client.auth.oauth2.GoogleCredential;
import com.google.api.client.auth.oauth2.AuthorizationCodeInstalledApp;
import com.google.api.client.auth.oauth2.AuthorizationCodeReceiver;
import com.google.api.client.auth.oauth2.AuthorizationCodeRequestUrl;
import com.google.api.client.auth.oauth2.TokenResponse;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.JsonObjectParser;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.JsonObjectParser;
.
.
.
Я пытался поискать в Google версии зависимостей , меняя репозитории, например maven.google.com
Подробнее здесь: https://stackoverflow.com/questions/793 ... pplication
Мобильная версия