misael/build.gradle

72 lines
1.8 KiB
Groovy

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.flywaydb:flyway-database-postgresql:_'
classpath 'org.postgresql:postgresql:_'
}
}
plugins {
id 'java'
id 'org.springframework.boot'
id 'org.flywaydb.flyway'
id 'io.spring.dependency-management'
}
group = 'com.bernard'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation Spring.boot.data.jpa
implementation Spring.boot.jdbc
implementation Spring.boot.thymeleaf
implementation Spring.boot.security
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6:_'
implementation Spring.boot.web
implementation 'org.springframework:spring-jdbc:_'
implementation 'org.flywaydb:flyway-core:_'
implementation 'org.flywaydb:flyway-database-postgresql:_'
implementation Spring.session.jdbc
implementation 'jakarta.validation:jakarta.validation-api:_'
runtimeOnly 'org.webjars:jquery:_'
developmentOnly Spring.boot.devTools
developmentOnly 'org.springframework.boot:spring-boot-docker-compose:_'
runtimeOnly 'org.postgresql:postgresql:_'
testImplementation Spring.boot.test
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:_'
implementation 'com.fasterxml.jackson.core:jackson-databind:_'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:_'
//Lombok
compileOnly 'org.projectlombok:lombok:_'
annotationProcessor 'org.projectlombok:lombok:_'
testCompileOnly 'org.projectlombok:lombok:_'
testAnnotationProcessor 'org.projectlombok:lombok:_'
}
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()
}