forked from time-series-machine-learning/tsml-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (89 loc) · 3.8 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
plugins {
id 'java'
id 'application'
}
version '0.1.0'
sourceCompatibility = 1.8
targetCompatibility = sourceCompatibility
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'lib', include: ['*.jar']) // all of the jars in the lib folder
// https://mvnrepository.com/artifact/junit/junit
testCompile group: 'junit', name: 'junit', version: '4.13'
// https://mvnrepository.com/artifact/org.apache.commons/commons-collections4
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.4'
// https://mvnrepository.com/artifact/org.apache.commons/commons-math3
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
// https://mvnrepository.com/artifact/commons-io/commons-io
compile group: 'commons-io', name: 'commons-io', version: '2.6'
// https://mvnrepository.com/artifact/com.carrotsearch/hppc
// WEASEL WEASEL_MUSE IndividualTDE MultivariateIndividualTDE
compile group: 'com.carrotsearch', name: 'hppc', version: '0.7.3'
// https://mvnrepository.com/artifact/com.beust/jcommander
compile group: 'com.beust', name: 'jcommander', version: '1.78'
// https://mvnrepository.com/artifact/net.sourceforge.jexcelapi/jxl
compile group: 'net.sourceforge.jexcelapi', name: 'jxl', version: '2.6.12'
// https://mvnrepository.com/artifact/com.esotericsoftware/kryo
compile group: 'com.esotericsoftware', name: 'kryo', version: '5.0.0-RC1'
// https://mvnrepository.com/artifact/org.n52.matlab/matlab-control
compile group: 'org.n52.matlab', name: 'matlab-control', version: '5.0.0'
// https://mvnrepository.com/artifact/ml.dmlc/xgboost4j
compile group: 'ml.dmlc', name: 'xgboost4j', version: '0.81'
// https://mvnrepository.com/artifact/com.google.guava/guava
compile group: 'com.google.guava', name: 'guava', version: '28.2-jre'
// https://mvnrepository.com/artifact/com.google.guava/guava-testlib
compile group: 'com.google.guava', name: 'guava-testlib', version: '28.2-jre'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
// https://mvnrepository.com/artifact/de.bwaldvogel/liblinear
// WEASEL WEASEL_MUSE
compile group: 'de.bwaldvogel', name: 'liblinear', version: '2.41'
// https://mvnrepository.com/artifact/tw.edu.ntu.csie/libsvm
// TEASER
compile group: 'tw.edu.ntu.csie', name: 'libsvm', version: '3.24'
// https://mvnrepository.com/artifact/com.github.rwl/jtransforms
compile group: 'com.github.rwl', name: 'jtransforms', version: '2.4.0'
// https://mvnrepository.com/artifact/org.nd4j/nd4j-native-platform
// RidgeClassifierCV
compile group: 'org.nd4j', name: 'nd4j-native-platform', version: '1.0.0-beta4'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-nop
compile group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.25'
}
sourceSets {
test {
java.srcDir 'src/main/java'
resources.srcDir 'src/main/resources'
}
}
tasks.withType(Test) {
maxParallelForks = Runtime.runtime.availableProcessors()
}
application {
mainClassName = 'experiments.Experiments'
}
jar {
manifest {
attributes 'Main-Class': application.mainClassName,
'Implementation-Title': project.name,
'Implementation-Version': version
}
}
task copyDepsToBuild(type: Copy) {
into "build/libs/lib"
from configurations.runtime
from 'lib'
}
task fatJar(type: Jar) {
zip64 true
manifest = jar.manifest
baseName = project.name + "-all"
from sourceSets.main.output
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
}
jar.finalizedBy(fatJar)
jar.finalizedBy(copyDepsToBuild)