80 lines
3.1 KiB
Groovy
80 lines
3.1 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '4.1.1'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
}
|
|
|
|
// Override Spring Boot BOM versions only where OSV triage found a fix.
|
|
// Each override is re-checked by scripts/scan-dependencies.ps1.
|
|
ext['jackson-2-bom.version'] = '2.21.7'
|
|
ext['jackson-bom.version'] = '3.1.7'
|
|
ext['rabbit-amqp-client.version'] = '5.37.1'
|
|
ext['tomcat.version'] = '11.0.25'
|
|
|
|
group = 'com.example'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(23)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
// implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-webmvc'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
|
implementation 'org.springframework.boot:spring-boot-starter-amqp'
|
|
implementation 'org.springframework.boot:spring-boot-flyway'
|
|
implementation 'org.flywaydb:flyway-core'
|
|
implementation 'org.flywaydb:flyway-database-postgresql'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.bouncycastle:bcprov-jdk18on:1.85'
|
|
// MinIO 8.6.0 pulls older Guava/snappy-java; pin the patched releases.
|
|
implementation 'com.google.guava:guava:33.7.2-jre'
|
|
implementation 'org.xerial.snappy:snappy-java:1.1.10.9'
|
|
implementation 'org.apache.commons:commons-pool2'
|
|
implementation 'io.minio:minio:8.6.0'
|
|
implementation 'net.coobird:thumbnailator:0.4.20'
|
|
implementation 'org.sejda.imageio:webp-imageio:0.1.6'
|
|
// The runtime SDK is supplied by the pinned OpenTelemetry Java agent.
|
|
// The API dependency keeps custom business metrics vendor-neutral.
|
|
implementation 'io.opentelemetry:opentelemetry-api:1.67.0'
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
|
|
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.3'
|
|
compileOnly 'org.projectlombok:lombok'
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
// testImplementation 'org.springframework.boot:spring-boot-starter-data-jpa-test'
|
|
// testImplementation 'org.springframework.boot:spring-boot-starter-security-test'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
|
|
testCompileOnly 'org.projectlombok:lombok'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
testAnnotationProcessor 'org.projectlombok:lombok'
|
|
|
|
implementation("com.github.f4b6a3:uuid-creator:6.1.1")
|
|
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.register('argon2Benchmark', JavaExec) {
|
|
group = 'verification'
|
|
description = 'Measures Argon2id encode/verify latency without printing hashes or passwords.'
|
|
dependsOn testClasses
|
|
classpath = sourceSets.test.runtimeClasspath
|
|
mainClass = 'com.example.mtusi_messenger.config.Argon2Benchmark'
|
|
}
|