-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (35 loc) · 1.24 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.1'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
//For only Spring Framework
implementation 'org.springframework:spring-core:6.2.2'
implementation 'org.springframework:spring-context:6.2.2'
implementation 'org.slf4j:slf4j-api:2.1.0-alpha1'
implementation 'ch.qos.logback:logback-classic:1.5.16'
implementation 'org.springframework.boot:spring-boot-starter'
//testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.mockito:mockito-core:5.14.2'
testImplementation 'org.mockito:mockito-junit-jupiter:5.14.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
testImplementation 'junit:junit:4.13.2' //mandatory wif using without spring boot
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testImplementation 'org.springframework:spring-test:6.2.1'
// https://mvnrepository.com/artifact/javax.inject/javax.inject
implementation group: 'javax.inject', name: 'javax.inject', version: '1'
}
tasks.named('test') {
useJUnitPlatform()
}