forked from singnet/offernet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
144 lines (125 loc) · 3.73 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
buildscript {
repositories {
maven {
url "http://repo.bodar.com"
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.commercehub:gradle-cucumber-jvm-plugin:0.8"
}
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'jacoco'
apply plugin: 'com.commercehub.cucumber-jvm' // https://github.com/commercehub-oss/gradle-cucumber-jvm-plugin
group="offernet"
version="0.0.3"
task wrapper(type: Wrapper) {
gradleVersion = '4.6'
}
task cucumberReporting(type: Exec) {
executable "sh"
args "-c", "groovy scripts/build-cucumber-report.groovy"
}
task buildBook(type: Exec) {
executable "sh"
args "-c", "scripts/build-offernet-documentation.sh"
}
task buildBlog(type: Exec) {
executable "sh"
args "-c", "scripts/build-elabnotebook-jekyll.sh"
}
task buildLabNotebook(type: Exec) {
executable "sh"
args "-c", "scripts/build-elabnotebook-bookdown.sh"
}
task copyUnitTestReport(type: Copy) {
from "${buildDir}/reports/tests/test"
into "docs/public/unit-tests/"
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled true
}
}
test {
//exclude '**/*Experiments*'
jvmArgs "-Dcom.sun.management.jmxremote"
jvmArgs "-Dcom.sun.management.jmxremote.port=5999"
jvmArgs "-Dcom.sun.management.jmxremote.local.only=false"
jvmArgs "-Dcom.sun.management.jmxremote.authenticate=false"
jvmArgs "-Dcom.sun.management.jmxremote.ssl=false"
jvmArgs "-Dcom.sun.management.jmxremote.rmi.port=5998"
testLogging.showStandardStreams = true
systemProperties System.getProperties()
reports.junitXml.enabled = false
reports.html.enabled = true
finalizedBy cucumberReporting
finalizedBy jacocoTestReport
}
task buildDocumentation {
dependsOn 'buildBook'
dependsOn 'copyUnitTestReport'
tasks.findByName('copyUnitTestReport').mustRunAfter 'buildBook'
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
jcenter()
}
configurations {
library
}
dependencies {
library 'org.aspectj:aspectjweaver:1.9.1'
runtime files('configs')
//compile "io.kamon:kamon-logback_2.12:1.0.0"
compile "io.kamon:kamon-core_2.12:1.1.0"
compile "io.kamon:kamon-akka-2.5_2.12:1.0.0"
compile "io.kamon:kamon-akka-http-2.5_2.12:1.0.0"
compile 'io.kamon:kamon-prometheus_2.12:1.1.1'
compile 'io.kamon:kamon-zipkin_2.12:1.0.0'
compile 'junit:junit:4.12'
compile 'org.codehaus.groovy:groovy-all:2.4.11'
compile 'com.datastax.dse:dse-java-driver-graph:1.6.7'
compile 'log4j:log4j:1.2.17'
compile 'org.slf4j:slf4j-log4j12:1.7.22'
compile 'com.typesafe.akka:akka-slf4j_2.12:2.5.11'
compile 'com.typesafe.akka:akka-actor_2.12:2.5.11'
compile 'com.typesafe.akka:akka-actor-typed_2.12:2.5.11'
compile 'org.json:json:20180130'
testCompile 'com.typesafe.akka:akka-testkit_2.12:2.5.11'
testCompile 'info.cukes:cucumber-java:1.2.5'
testCompile 'info.cukes:cucumber-junit:1.2.5'
testCompile 'net.masterthought:cucumber-reporting:3.1.0'
testCompile 'org.apache.tinkerpop:tinkergraph-gremlin:3.3.3'
}
task copyLibraries(type: Copy) {
from configurations.library
into projectDir.absolutePath+'/lib'
}
build.dependsOn(copyLibraries)
test {
if (project.hasProperty("kamon")) {
doFirst {
copyLibraries
jvmArgs = [ '-javaagent:' + projectDir + '/lib/aspectjweaver-1.9.1.jar' ]
}
}
}
tasks.withType(JavaCompile) {
// options.compilerArgs << '-Xlint:deprecation'
options.compilerArgs << '-proc:none'
// options.compilerArgs << '-Xlint:unchecked'
options.warnings = false
}
task stressTesting(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'io.singularitynet.offernet.Main'
args 'stressTesting'
}