misael/build.gradle

68 lines
2.0 KiB
Groovy

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.flywaydb:flyway-database-postgresql:11.3.2'
classpath 'org.postgresql:postgresql:42.7.5'
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.2'
id 'org.flywaydb.flyway' version "11.3.2"
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.bernard'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.3.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework:spring-jdbc'
implementation 'org.flywaydb:flyway-core:11.3.2'
implementation 'org.flywaydb:flyway-database-postgresql:11.3.2'
implementation 'org.springframework.session:spring-session-jdbc'
implementation 'jakarta.validation:jakarta.validation-api:3.1.1'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
developmentOnly 'org.springframework.boot:spring-boot-docker-compose'
runtimeOnly 'org.postgresql:postgresql'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
//Lombok
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
testCompileOnly 'org.projectlombok:lombok:1.18.36'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.36'
}
flyway {
url = "jdbc:postgresql://127.0.0.1:10051/misael"
user = 'misael'
password = 'misael-dev'
driver = 'org.postgresql.Driver'
schemas = ['misael']
}
tasks.named('test') {
useJUnitPlatform()
}