-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (39 loc) · 836 Bytes
/
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
plugins {
id 'java'
id 'application'
id 'idea'
}
repositories {
mavenCentral()
}
dependencies {
implementation (
'org.eclipse.jetty.aggregate:jetty-all:9.4.24.v20191120',
'org.freemarker:freemarker:2.3.29',
'org.xerial:sqlite-jdbc:3.28.0'
)
}
application {
mainClass = 'ELEN4024A.cwk2.AppServer'
}
idea {
module {
outputDir file('build/classes/main')
testOutputDir file('build/classes/test')
}
}
task submission(type: Zip) {
group = 'Submission'
description = 'Generates Zip archive suitable for submission.'
archiveFileName = 'cwk2.zip'
destinationDirectory = project.rootDir
from("$project.rootDir") {
exclude 'cwk2.zip', 'build', '.git', '.gradle', '.idea'
}
doFirst {
assert file("report.pdf").exists()
}
doLast {
logger.warn("cwk2.zip generated.")
}
}