Files
2026-08-24 15:24:50 +02:00

63 lines
1.6 KiB
Groovy
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
buildscript {
dependencies {
classpath 'org.flywaydb:flyway-database-postgresql:_'
classpath 'org.postgresql:postgresql:_'
}
}
plugins {
id 'java'
id 'org.flywaydb.flyway' version '13.3.0'
id 'org.springframework.boot' version '4.1.1'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.bernard'
version = '1.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
dependencies {
implementation Spring.boot.data.jpa
implementation Spring.boot.jdbc
implementation Spring.boot.thymeleaf
implementation Spring.boot.websocket
implementation Spring.boot.web
implementation 'org.springframework:spring-jdbc:_'
implementation 'org.flywaydb:flyway-core:_'
implementation 'org.flywaydb:flyway-database-postgresql:_'
implementation 'jakarta.validation:jakarta.validation-api:_'
//TODO use webjars
runtimeOnly 'org.webjars:jquery:_'
runtimeOnly 'org.webjars:lodash:_'
developmentOnly Spring.boot.devTools
runtimeOnly 'org.postgresql:postgresql:_'
runtimeOnly 'org.hibernate.orm:hibernate-core:_'
testImplementation Spring.boot.test
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:_'
//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:5432/nodecames"
user = 'nodecames'
password = 'nodecames-dev'
driver = 'org.postgresql.Driver'
schemas = ['nodecames']
}
tasks.named('test') {
useJUnitPlatform()
}