-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (54 loc) · 1.51 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
// StateDataStructure
apply plugin: 'java'
apply plugin: 'maven-publish'
project.version="0.52.00"
// println "abc" // printf debugging
// println project.version
sourceCompatibility=1.5
targetCompatibility=1.5
task usage {
doFirst {
println ""
println "usage:"
println " ./gradlew test # compile & run unit tests"
println " ./gradlew publishToMavenLocal # publish to local maven repository"
println " and, of course, ./gradlew tasks # get the list of available tasks"
println ""
println ""
}
}
publishing {
publications {
maven(MavenPublication) {
groupId 'com.jrvdev'
artifactId 'StateDataStructure'
version "${project.version}"
from components.java
}
}
}
task wrapper( type: Wrapper ) {
gradleVersion = "2.10"
}
dependencies {
testCompile 'junit:junit:4.12'
}
repositories {
mavenCentral()
}
test {
testLogging {
// Make sure output from
// standard out or error is shown
// in Gradle output.
showStandardStreams = true
// Or we use events method:
// events 'standard_out', 'standard_error'
// Or set property events:
// events = ['standard_out', 'standard_error']
// Instead of string values we can
// use enum values:
// events org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT,
// org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR,
}
}