-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (44 loc) · 1.16 KB
/
Copy pathbuild.gradle
File metadata and controls
50 lines (44 loc) · 1.16 KB
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
plugins {
id 'java-library'
id 'maven-publish'
id "war"
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
api libs.org.mariadb.jdbc.mariadb.java.client
api libs.mysql.mysql.connector.java
api libs.org.postgresql.postgresql
testImplementation libs.junit.junit
providedCompile libs.jakarta.servlet.jakarta.servlet.api
}
group = 'com.dataDive'
version = '1.0.0'
description = 'The web application for getPosted online book selling company'
defaultTasks = ["clean", "test", "build", "war"]
java.sourceCompatibility = JavaVersion.VERSION_1_8
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
// configurations
war{
archiveBaseName = "getPosted"
archiveFileName = "getPosted.war"
}
test{
maxParallelForks=1
// afterTest { desc, result ->
// Add delay after each test execution
// def delaySeconds = 10 // Adjust the delay duration as needed
// println "Waiting for ${delaySeconds} seconds before running the next test..."
// Thread.sleep(delaySeconds * 1000)
// }
}