This repository has been archived by the owner on Dec 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·99 lines (82 loc) · 2.35 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
98
99
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
google()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
classpath "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.palantir:jacoco-coverage:0.4.0'
}
}
apply plugin: 'com.palantir.jacoco-full-report'
jacocoFull {
excludeProject ":android", ":desktop"
}
allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
jcenter()
}
}
configure(subprojects - project(':android')) {
apply plugin: 'java'
sourceCompatibility = 1.6
apply plugin: "idea"
idea {
module {
scopes.PROVIDED.minus += [configurations.compile]
scopes.COMPILE.plus += [configurations.compile]
}
}
test {
// enable TestNG support (default is JUnit)
useTestNG()
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
// set heap size for the test JVM(s)
minHeapSize = "128m"
maxHeapSize = "512m"
// set JVM arguments for the test JVM(s)
jvmArgs '-XX:MaxPermSize=256m'
// listen to events in the test execution lifecycle
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
// listen to standard out and standard error of the test JVM(s)
onOutput { descriptor, event ->
logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message )
}
}
apply plugin: "jacoco"
task testNG(type: Test) {
useTestNG()
jacoco {
destinationFile = file("$buildDir/jacoco/test.exec")
}
}
jacocoTestReport {
executionData testNG
}
}
subprojects {
version = '0.0.1-SNAPSHOT'
ext.appName = 'Adventure Emulation'
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}
// Clearing Eclipse project data in root folder:
tasks.eclipse.doLast {
delete '.project'
delete '.classpath'
delete '.settings/'
}