-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (34 loc) · 1.17 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
plugins {
id 'application'
id 'war'
}
group 'com.TourGuide'
// version '1.0-SNAPSHOT'
// sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.guava:guava:31.1-jre'
providedCompile group: 'jakarta.servlet', name: 'jakarta.servlet-api', version: '5.0.0'
providedCompile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: '11.0.0-M5'
providedCompile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper', version: '11.0.0-M5'
// PostgreSQL JDBC driver
// implementation 'org.postgresql:postgresql:42.3.1'
// MySQL JDBC driver
implementation 'mysql:mysql-connector-java:8.0.26'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1'
// testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.3.1'
// Mockito
testImplementation 'org.mockito:mockito-core:3.12.4'
// Optional: If using a web container for integration tests
testCompileOnly 'org.apache.tomcat.embed:tomcat-embed-core:9.0.54'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(20)
}
}
tasks.named('test') {
useJUnitPlatform()
}