plugins { id 'java' id 'org.springframework.boot' version '3.5.16' } group = 'ru.mtusi' version = '2.0.0' description = 'Lab 5 messenger with durable asynchronous image processing' java { toolchain { languageVersion = JavaLanguageVersion.of(21) } } repositories { mavenCentral() } dependencies { implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.16') implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-jdbc' implementation 'org.springframework.boot:spring-boot-starter-data-redis' implementation 'org.flywaydb:flyway-core' implementation 'org.flywaydb:flyway-database-postgresql' implementation 'org.postgresql:postgresql' implementation 'org.springframework.security:spring-security-crypto' implementation 'org.bouncycastle:bcprov-jdk18on:1.80' implementation 'io.minio:minio:8.5.17' implementation 'io.github.lajczik:webp4j:2.7.2' testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } dependencyLocking { lockAllConfigurations(); lockMode = LockMode.STRICT } tasks.withType(JavaCompile).configureEach { options.release = 21; options.encoding = 'UTF-8'; options.compilerArgs.add('-parameters') } tasks.withType(AbstractArchiveTask).configureEach { preserveFileTimestamps = false; reproducibleFileOrder = true } tasks.named('bootJar') { archiveFileName = 'messenger.jar' } tasks.named('jar') { enabled = false } tasks.named('test') { useJUnitPlatform(); maxHeapSize = '256m'; testLogging { events 'passed','skipped','failed'; exceptionFormat = 'full' } } tasks.register('resolveDependencies') { doLast { configurations.findAll { it.canBeResolved }.each { it.resolve() } } }