forked from OmniLayer/OmniJ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (65 loc) · 2.06 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctorj-diagram:1.5.0'
}
}
plugins {
id 'org.asciidoctor.convert' version '1.5.3'
id 'com.jfrog.bintray' version '1.8.4' apply false
}
// See gradle.properties for some dependency version settings
allprojects {
apply plugin: 'java'
apply plugin: 'groovy'
//apply plugin: 'findbugs'
//apply plugin: 'pmd'
version = omnijVersion
group = 'foundation.omni'
repositories {
jcenter()
//mavenLocal() // Uncomment to work with local snapshots
maven { url 'https://dl.bintray.com/msgilligan/maven' } // ConsensusJ (RPC client)
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
}
tasks.withType(GroovyCompile) {
groovyOptions.optimizationOptions.indy = true
}
}
subprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile "org.bitcoinj:bitcoinj-core:${bitcoinjVersion}"
compile "org.slf4j:slf4j-api:${slf4jVersion}"
testCompile "org.codehaus.groovy:groovy:${groovyVersion}:indy"
testCompile("org.spockframework:spock-core:${spockVersion}") {
exclude module: "groovy-all"
}
testRuntime "org.slf4j:slf4j-jdk14:${slf4jVersion}" // Runtime implementation of slf4j for tests
}
compileJava {
options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked'
}
test {
testLogging.showStandardStreams = true
}
}
apply from: 'gradle/idea.gradle'
apply from: 'gradle/groovydoc.gradle'
apply from: 'gradle/asciidoctor.gradle'
apply from: 'gradle/bintray.gradle'
task testReport(type: TestReport) {
destinationDir = file("$buildDir/reports/allTests")
// Include the results from the `test` task in all subprojects
reportOn subprojects*.test
}
task buildCI(dependsOn: [build, testReport, groovydocAll, asciidoctor])
task jenkinsBuild(dependsOn: buildCI)