VegaHRM.Backend/vega-hrm-report/build.gradle
2025-11-25 00:07:33 +07:00

65 lines
2.7 KiB
Groovy

plugins {
id 'java'
id 'org.springframework.boot' version '3.4.0'
id 'io.spring.dependency-management' version '1.1.6'
}
group = 'com.vega.hrm.report'
version = 'unspecified'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.4.0'
implementation 'org.springframework.boot:spring-boot-starter-web:3.4.0'
implementation 'org.projectlombok:lombok:1.18.38'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0'
implementation('org.springframework.boot:spring-boot-starter:3.4.0') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
implementation 'org.springframework.boot:spring-boot-starter-log4j2:3.4.0'
implementation 'org.springframework.boot:spring-boot-starter-validation:3.4.0'
implementation 'de.mkammerer:argon2-jvm:2.1'
// Google API Services
implementation 'com.google.apis:google-api-services-youtube:v3-rev182-1.22.0'
implementation 'com.google.apis:google-api-services-youtubeAnalytics:v2-rev272-1.25.0'
implementation 'com.google.apis:google-api-services-youtubereporting:v1-rev10-1.22.0'
implementation 'com.google.apis:google-api-services-oauth2:v2-rev157-1.25.0'
// Google API Client (phiên bản mới để tương thích với YouTube libs)
implementation 'com.google.api-client:google-api-client:1.34.1'
implementation 'com.google.oauth-client:google-oauth-client-jetty:1.34.1'
implementation 'com.google.http-client:google-http-client-jackson2:1.43.3'
implementation 'com.google.guava:guava:32.1.3-jre'
implementation 'com.google.code.gson:gson:2.11.0'
annotationProcessor 'org.projectlombok:lombok:1.18.38'
implementation project(":vega-hrm-core")
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
}
configurations {
all {
// Loại bỏ Logback
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
// Loại bỏ logging mặc định
exclude group: 'ch.qos.logback', module: 'logback-classic'
// Loại bỏ các thư viện Guava/Google Collections cũ
exclude group: 'com.google.guava', module: 'guava-jdk5'
exclude group: 'com.google.collections', module: 'google-collections'
resolutionStrategy {
// Bắt buộc dùng Guava mới nhất
force 'com.google.guava:guava:32.1.3-jre'
force 'com.google.api-client:google-api-client:1.34.1'
force 'com.google.oauth-client:google-oauth-client-jetty:1.34.1'
force 'com.google.http-client:google-http-client-jackson2:1.43.3'
}
}
}