-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (39 loc) · 1.4 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
plugins {
// id ("org.springframework.boot") version "3.1.2"
// id ("io.spring.dependency-management") version "1.1.2"
id("java")
}
group = "com.main"
version = "1.0"
sourceCompatibility = "17" // Use the JDK version you're working with
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
// // Postgresql
// implementation 'org.postgresql:postgresql:42.7.2' // Latest version as of now
//
// // Spring Boot Web dependency for building REST APIs
// implementation 'org.springframework.boot:spring-boot-starter-web'
//
// // Spring Data JPA for ORM (Object-Relational Mapping)
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
//
// // H2 Database (for in-memory testing, replace with MySQL or PostgreSQL in production)
// runtimeOnly 'com.h2database:h2'
//
// // Lombok to reduce boilerplate code like getters, setters, and constructors
// compileOnly 'org.projectlombok:lombok:1.18.28'
// annotationProcessor 'org.projectlombok:lombok:1.18.28'
//
// // Spring Boot Starter Test (JUnit 5, Mockito)
// testImplementation 'org.springframework.boot:spring-boot-starter-test'
//
// // Spring Boot Starter Validation
// implementation 'org.springframework.boot:spring-boot-starter-validation'
}
tasks.test {
useJUnitPlatform()
}