2024-02-23 12:00:36 +01:00
|
|
|
plugins {
|
|
|
|
java
|
|
|
|
id("org.springframework.boot") version "3.2.2"
|
|
|
|
id("io.spring.dependency-management") version "1.1.4"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "ovh.herisson"
|
|
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-02-27 12:08:28 +01:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-jdbc")
|
2024-02-29 08:53:33 +01:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
2024-02-23 12:00:36 +01:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-mail")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
2024-02-29 20:08:12 +01:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
2024-02-27 14:24:26 +01:00
|
|
|
// implementation("org.springframework.session:spring-session-jdbc")
|
2024-02-23 12:00:36 +01:00
|
|
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
2024-02-27 12:08:28 +01:00
|
|
|
developmentOnly("org.springframework.boot:spring-boot-docker-compose")
|
2024-02-23 12:00:36 +01:00
|
|
|
runtimeOnly("org.postgresql:postgresql")
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
2024-02-27 12:08:28 +01:00
|
|
|
testImplementation("org.springframework.boot:spring-boot-testcontainers")
|
|
|
|
testImplementation("org.testcontainers:junit-jupiter")
|
|
|
|
testImplementation("org.testcontainers:postgresql")
|
2024-02-23 12:00:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register("run") {
|
|
|
|
dependsOn(tasks.bootRun)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|