mirror of
https://github.com/mvvasilev/personal-finances.git
synced 2025-04-19 14:19:52 +03:00
50 lines
1.2 KiB
Groovy
50 lines
1.2 KiB
Groovy
|
plugins {
|
||
|
id 'java'
|
||
|
id 'org.springframework.boot' version '3.2.0'
|
||
|
id 'io.spring.dependency-management' version '1.1.3'
|
||
|
}
|
||
|
|
||
|
group = 'dev.mvvasilev'
|
||
|
version = '0.0.1-SNAPSHOT'
|
||
|
|
||
|
java {
|
||
|
sourceCompatibility = '21'
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
ext {
|
||
|
set('springCloudVersion', "2023.0.0")
|
||
|
}
|
||
|
|
||
|
ext['spring-security.version']='6.2.0'
|
||
|
|
||
|
dependencies {
|
||
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||
|
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
|
||
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||
|
implementation 'org.flywaydb:flyway-core'
|
||
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
|
||
|
runtimeOnly 'com.h2database:h2'
|
||
|
runtimeOnly 'org.postgresql:postgresql'
|
||
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||
|
testImplementation 'org.springframework.security:spring-security-test'
|
||
|
}
|
||
|
|
||
|
dependencyManagement {
|
||
|
imports {
|
||
|
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
tasks.named('bootBuildImage') {
|
||
|
builder = 'paketobuildpacks/builder-jammy-base:latest'
|
||
|
}
|
||
|
|
||
|
tasks.named('test') {
|
||
|
useJUnitPlatform()
|
||
|
}
|