-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle
64 lines (53 loc) · 1.75 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
58
59
60
61
62
63
plugins {
id 'java'
id 'ru.vyarus.use-python' version '4.1.0'
}
group 'ca.stfx.jhughes'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
python {
pip 'sphinx:5.3.0'
pip 'sphinx-rtd-theme:1.0.0'
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.4'
testImplementation 'org.assertj:assertj-core:3.27.1'
testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.17.4'
testImplementation 'com.google.guava:guava-testlib:33.4.0-jre'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.3'
}
test {
useJUnitPlatform()
}
task compressAssignment1(type: Zip) {
archiveFileName = "Assignment1.zip"
destinationDirectory = file("src/site/assignments/country-catalogue")
from "src/site/assignments/country-catalogue/Assignment1"
}
task compressAssignment2(type: Zip) {
archiveFileName = "Assignment2.zip"
destinationDirectory = file("src/site/assignments/maze-solver/")
from "src/site/assignments/maze-solver/Assignment2"
}
task compressAssignment3(type: Zip) {
archiveFileName = "Assignment3.zip"
destinationDirectory = file("src/site/assignments/maze-solver-too/")
from "src/site/assignments/maze-solver-too/Assignment3"
}
task compressAssignment4(type: Zip) {
archiveFileName = "Assignment4.zip"
destinationDirectory = file("src/site/assignments/huffman-codes/")
from "src/site/assignments/huffman-codes/Assignment4"
}
task site(type: PythonTask) {
dependsOn(tasks.pipInstall)
dependsOn(compressAssignment1)
dependsOn(compressAssignment2)
dependsOn(compressAssignment3)
dependsOn(compressAssignment4)
module = 'sphinx'
command = '-b html src/site build/site'
}