53 lines
1.9 KiB
Groovy
53 lines
1.9 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.4.1'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
}
|
|
|
|
group = 'com.mailserver'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// WebFlux — реактивный HTTP сервер на Netty
|
|
implementation 'org.springframework.boot:spring-boot-starter-webflux'
|
|
// R2DBC — реактивный доступ к PostgreSQL (вместо JPA/Hibernate)
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
// SMTP сервер на Spring — встроенный, без внешних зависимостей
|
|
implementation 'org.eclipse.angus:angus-mail:2.0.3'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.security:spring-security-crypto'
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
|
|
|
|
// Bouncy Castle — криптография для DKIM подписи и верификации
|
|
implementation 'org.bouncycastle:bcpkix-jdk18on:1.78.1'
|
|
implementation 'org.bouncycastle:bcprov-jdk18on:1.78.1'
|
|
|
|
// R2DBC PostgreSQL драйвер
|
|
runtimeOnly 'org.postgresql:r2dbc-postgresql:1.0.4.RELEASE'
|
|
|
|
// Flyway — миграции базы данных (требует JDBC драйвер)
|
|
implementation 'org.flywaydb:flyway-database-postgresql'
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'com.icegreen:greenmail:2.0.1'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|