-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (43 loc) · 1.65 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
46
47
48
49
50
51
52
53
54
55
56
57
plugins {
// Spring Boot for building modern Java applications
id 'org.springframework.boot' version '3.1.2'
// SpotBugs for static code analysis
id 'com.github.spotbugs' version '5.0.13'
// Gradle dependency updates plugin to manage library versions
id 'com.github.ben-manes.versions' version '0.46.0'
// Kotlin support for building Kotlin-based projects
id 'org.jetbrains.kotlin.jvm' version '1.9.0'
// JUnit 5 Gradle plugin for testing support
id 'de.marcphilipp.nexus-publish' version '1.3.1'
}
repositories {
// Maven Central for dependencies
mavenCentral()
// JCenter for additional libraries
jcenter()
}
dependencies {
// Spring Boot starter dependencies
implementation 'org.springframework.boot:spring-boot-starter:3.1.2'
implementation 'org.springframework.boot:spring-boot-starter-web:3.1.2'
// Jackson for JSON processing
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
// Lombok for boilerplate code reduction
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
// JUnit for testing
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
// AssertJ for fluent assertions in tests
testImplementation 'org.assertj:assertj-core:3.24.2'
// Mockito for mocking in tests
testImplementation 'org.mockito:mockito-core:5.4.0'
}
java {
// Set Java compatibility
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile) {
// Enable incremental compilation for better performance
options.incremental = true
}