-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
97 lines (73 loc) · 2.39 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
plugins {
id 'scala'
id 'idea'
id 'application'
}
application {
mainClass.set("tetris.game.TetrisGame")
}
ext {
scalaMajorVersion = '2.13'
scalaVersion = "${scalaMajorVersion}.14"
}
repositories {
mavenCentral()
maven {
url "https://jogamp.org/deployment/maven/"
}
maven {
url "https://jitpack.io"
}
}
sourceSets.main.scala.srcDirs = ['src']
sourceSets.test.scala.srcDirs = ['test']
dependencies {
implementation "com.github.micycle1:processing-core-4:4.3"
implementation 'org.jogamp.gluegen:gluegen-rt-main:2.5.0-rc-20230523'
// https://mvnrepository.com/artifact/org.jogamp.gluegen/gluegen-rt
implementation 'org.jogamp.gluegen:gluegen-rt:2.5.0-rc-20230523'
implementation "org.scala-lang:scala-library:2.13.14"
testImplementation('junit:junit:4.13.2')
testImplementation("org.scala-lang:scala-reflect")
testImplementation('org.junit.vintage:junit-vintage-engine:5.9.0')
testImplementation("org.scalatest:scalatest_${scalaMajorVersion}:3.0.9")
}
task zip(type: Zip) {
group = "prepareZipForSubmit"
description = "Zip your code for submission to Codegrade"
// To make sure you can always run this task
outputs.upToDateWhen { false }
dependsOn assemble
from fileTree(dir: '.')
include 'src/tetris/logic/**.scala'
archiveFileName = 'tetris.zip'
destinationDirectory = layout.buildDirectory.dir("$projectDir")
}
task test3_1(type: Test) {
description="Run tests for assignment 3.1 (tetris)"
filter {
includeTestsMatching "tetris.TetrisTestSuite3_1"
}
}
task test3_2(type: Test) {
description="Run tests for assignment 3.2 (tetris)"
filter {
includeTestsMatching "tetris.TetrisTestSuite3_2"
}
}
task fraction3_1(type: JavaExec, dependsOn: classes) {
// To make sure you can always run this task
outputs.upToDateWhen { false }
mainClass.set('infrastructure.ReportFraction3_1')
classpath sourceSets.test.runtimeClasspath
classpath sourceSets.main.runtimeClasspath
//classpath configurations.runtime
}
task fraction3_2(type: JavaExec, dependsOn: classes) {
// To make sure you can always run this task
outputs.upToDateWhen { false }
mainClass.set('infrastructure.ReportFraction3_2')
classpath sourceSets.test.runtimeClasspath
classpath sourceSets.main.runtimeClasspath
//classpath configurations.runtime
}