-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
80 lines (66 loc) · 2.16 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'application'
uploadArchives {
repositories.mavenDeployer {
repository(url: "file:///${System.properties['user.home']}/artifacts/")
pom.version = "4.1.13"
pom.artifactId = "bayonet"
pom.groupId = "com.github.UBC-Stat-ML"
}
}
eclipse {
classpath {
defaultOutputDir = file('bin')
}
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
maven { url "https://ubc-stat-ml.github.io/artifacts/" }
maven { url "https://www.stat.ubc.ca/~bouchard/maven/" }
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '18.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'junit', name: 'junit', version: '4.12'
compile group: 'com.github.UBC-Stat-ML', name: 'briefj', version: '2.6.3'
compile group: 'com.github.UBC-Stat-ML', name: 'binc', version: '2.0.5'
compile 'net.sf.opencsv:opencsv:2.3'
compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24'
compile 'commons-io:commons-io:2.4'
compile 'org.mvel:mvel2:2.1.8.Final'
compile 'org.apache.commons:commons-math3:3.4.1'
compile group: 'org.jgrapht', name: 'jgrapht-dist', version: '0.9.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.3.2'
compile 'org.jblas:jblas:1.2.3'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
artifacts {
archives sourcesJar
archives javadocJar
}
configurations.archives.with {
artifacts.remove artifacts.find { it.archiveTask.is distZip }
artifacts.remove artifacts.find { it.archiveTask.is distTar }
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
//noinspection SpellCheckingInspection
tasks.withType(Javadoc) {
// disable the crazy super-strict doclint tool in Java 8
//noinspection SpellCheckingInspection
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
mainClassName = 'blang.prototype.Main'