-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
81 lines (63 loc) · 1.98 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
apply plugin: 'java'
apply plugin: 'application'
group = 'testgrp'
version = '0.2.0'
status = 'integration'
description = 'TODO - Pls. edit - Gradle bootstrap project for Quasar'
ext.classifier = ':jdk8' // ':'
sourceCompatibility = 1.8 // 1.7
targetCompatibility = 1.8 // 1.7
ext.quasarVer = '0.7.4'
ext.junitVer = '4.12'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
configurations {
quasar
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
}
}
repositories {
// mavenLocal()
mavenCentral()
// maven { url "https://oss.sonatype.org/content/repositories/releases" }
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
// maven { url 'https://maven.java.net/content/repositories/snapshots' }
}
dependencies {
compile "co.paralleluniverse:quasar-core:${quasarVer}${classifier}"
quasar "co.paralleluniverse:quasar-core:${quasarVer}${classifier}@jar"
testCompile "junit:junit:$junitVer"
}
test {
beforeTest { desc ->
logger.quiet("Running test: " + desc)
}
afterTest { desc, result ->
if(result.resultType == TestResult.ResultType.FAILURE) {
logger.quiet("Failed test ${desc.name} [${desc.className}] with exception: ${result.exception}")
if(result.exception != null) {
result.exception.printStackTrace()
}
}
}
}
tasks.withType(Test) {
useJUnit()
// systemProperty 'co.paralleluniverse.fibers.verifyInstrumentation', 'true'
jvmArgs "-Xmx2048m"
doLast() {
println "file://" + getReports().getHtml().getDestination() + "/index.html"
}
}
mainClassName = "testgrp.QuasarIncreasingEchoApp"
if (project.hasProperty('method')) {
apply from: "gradle/${project.getProperty('method')}.gradle"
} else {
apply from: "gradle/agent.gradle"
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}
defaultTasks 'test'