-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (51 loc) · 1.75 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
plugins {
id 'idea'
id 'java'
id 'java-library'
id 'application'
id "io.freefair.lombok" version "4.1.6"
}
group 'com.blablacar'
version '1.0-SNAPSHOT'
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
sourceCompatibility = 1.8
// applicationDefaultJvmArgs = ['-Djava.library.path=' + '.:/usr/lib/R/site-library/rJava/jri/']
// environment "R_HOME", "/usr/lib/R"
// environment 'CLASSPATH', '.:/usr/lib/R/site-library/rJava/jri/'
// environment 'LD_LIBRARY_PATH', '/usr/lib/R/site-library/rJava/jri/'
sourceSets {
jmh {
java.srcDirs = ['src/main/java/']
}
}
application {
mainClassName = 'benchmark.Main'
}
task ("jmh", type: JavaExec) {
dependsOn['jmhClasses']
group = "benchmark"
main = 'org.openjdk.jmh.Main'
classpath = sourceSets["jmh"].runtimeClasspath
}
dependencies {
// Machine Learning libraries
compile group: 'org.jpmml', name: 'pmml-evaluator', version: '1.4.14'
compile group: 'com.github.lucarosellini.rJava', name: 'JRIEngine', version: '0.9-7' // 0.9-8-b5
compile group: 'biz.k11i', name: 'xgboost-predictor', version: '0.3.0'
compile group: 'ml.dmlc', name: 'xgboost4j', version: '0.90'
// Utils
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1'
compile group: 'org.projectlombok', name: 'lombok', version: '1.16.16'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
compile group: 'com.google.guava', name: 'guava', version: '11.0.2'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
// Benchmark
jmhImplementation(project)
implementation 'org.openjdk.jmh:jmh-core:1.23'
jmhImplementation 'org.openjdk.jmh:jmh-core:1.23'
jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.23'
}