-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (69 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id "java"
id "application"
id "jacoco"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "de.undercouch.download" version "4.0.4"
id "com.adarshr.test-logger" version "2.0.0"
}
sourceCompatibility = 1.8
group = "de.mat2095"
version = "0.1.0"
mainClassName = "de.mat2095.detunes.Main"
repositories {
mavenCentral()
maven {
url "https://jitpack.io"
}
maven {
url "https://repo.spring.io/plugins-release/"
}
}
dependencies {
implementation "com.github.WilliamAHartman:Jamepad:1.3.2"
implementation "com.bulenkov:darcula:2018.2"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.0"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.6.0"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.6.0"
}
run {
maxHeapSize = "2g"
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
}
task prepareTest {
def tmpZip = new File(buildDir, "instr_test-v5.zip")
def destFolder = new File("roms")
download {
src "http://blargg.8bitalley.com/nes-tests/instr_test-v5.zip"
dest tmpZip
overwrite false
}
copy {
from(zipTree(tmpZip)) {
include "instr_test-v5/**/*.nes"
includeEmptyDirs = false
}
into destFolder
eachFile {
if (it.getRelativePath().getFile(destFolder).exists()) {
it.exclude()
}
}
}
download {
src "http://nickmass.com/images/nestest.nes"
dest new File(destFolder, "nestest/nestest.nes")
overwrite false
}
}
test {
dependsOn prepareTest
useJUnitPlatform()
finalizedBy jacocoTestReport
}
shadowJar {
zip64 = true
mergeServiceFiles()
}