This repository has been archived by the owner on Jan 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
90 lines (73 loc) · 2.58 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
plugins {
id 'java'
id 'groovy'
id 'idea'
id 'jacoco'
id "org.sonarqube" version "2.6"
}
group 'jp.co.soramitsu.iroha'
version '1.0.0_rc2-ti-1.0.0'
sourceCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
final def testContainersVersion = '1.10.2'
final def irohaPureJavaVersion = 'v1.0.0_rc2-SNAPSHOT'
final def lombokVersion = '1.18.4'
final def jacksonVersion = '2.9.7'
final def spockVersion = '1.2-groovy-2.4'
final def spockGenesisVersion = '0.6.0'
final def cglibVersion = '3.2.10'
final def bytebuddyVersion = '1.9.6'
final def objgenesisVersion = '3.0.1'
final def slf4jVersion = '1.7.25'
final def junitVersion = '4.12'
dependencies {
// for mocking in groovy
testCompile("net.bytebuddy:byte-buddy:${bytebuddyVersion}")
testCompile("org.objenesis:objenesis:${objgenesisVersion}")
testCompile("cglib:cglib-nodep:${cglibVersion}")
testCompile("com.nagternal:spock-genesis:${spockGenesisVersion}")
testCompile("org.spockframework:spock-core:${spockVersion}")
compile group: 'org.slf4j', name: 'slf4j-api', version: "${slf4jVersion}"
compile group: 'org.slf4j', name: 'slf4j-simple', version: "${slf4jVersion}"
//lombok
compileOnly("org.projectlombok:lombok:${lombokVersion}")
testCompileOnly("org.projectlombok:lombok:${lombokVersion}")
// jackson
compile "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"
// iroha java
compile "com.github.warchant:iroha-pure-java:${irohaPureJavaVersion}"
// testcontainers
compile("org.testcontainers:postgresql:${testContainersVersion}")
compile("org.testcontainers:testcontainers:${testContainersVersion}")
testCompile group: 'junit', name: 'junit', version: "${junitVersion}"
}
jacoco {
toolVersion = "0.8.1"
reportsDir = file("$buildDir/reports/")
}
jacocoTestReport {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
reports {
xml.enabled true
xml.destination file("${buildDir}/reports/coverage.xml")
csv.enabled false
html.enabled false
html.destination file("${buildDir}/reports/html")
}
dependsOn(test)
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10'
}
sonarqube {
properties {
property "sonar.projectKey", "lib:testcontainers.iroha"
}
}