-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (34 loc) · 922 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
plugins {
id 'java'
id 'checkstyle'
}
repositories {
mavenCentral()
}
//this configuration allows builds to continue even if there are
//checkstyle errors or warnings.
// change true to false to make checkstyle force you to fix things
checkstyle {
ignoreFailures = true
}
//edit the main class and the archive base name
jar {
manifest {
attributes 'Main-Class': 'ui.TextUI'
}
archiveBaseName = 'Mancala'
}
//change the class name on line 25 to match
task echo;
//edit the names at the end of lines 35 and 36
echo.doFirst {
println "To run the program from jar:\njava -jar build/libs/Mancala.jar"
println "To run the program from class files:\njava -cp build/classes/java/main ui.TextUI"
}
test {
useJUnitPlatform()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}