forked from UBC-Stat-ML/conifer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
127 lines (109 loc) · 3.83 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'download-task'
apply plugin:'application'
mainClassName = "conifer.SingleProteinModel.Main"
import de.undercouch.gradle.tasks.download.Download
uploadArchives {
repositories.mavenDeployer {
repository(url: "file:///Users/bouchard/Documents/web/public_html/maven/")
pom.version = "1.3.6"
pom.artifactId = "conifer"
pom.groupId = "ca.ubc.stat"
}
}
eclipse {
classpath {
defaultOutputDir = file('bin')
}
}
test {
testLogging {
exceptionFormat = 'full'
}
}
task fetchDataFiles(type: Download) {
src([
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/UTY.ape.4.nwk',
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/UTY_4.fasta',
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/UTY_4.g.fasta',
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/FES_8.g.fasta',
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/FES_8.fasta',
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/FES_4.g.fasta',
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/FES.ape.8.nwk',
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/FES_4.fasta',
'https://raw.githubusercontent.com/sohrabsa/conifer/master/src/main/resources/conifer/sampleInput/FES.ape.4.nwk'
])
def destDir = new File('src/main/resources/conifer/sampleInput/')
if (!destDir.isDirectory()) {
destDir.mkdirs()
}
dest destDir
}
repositories {
mavenCentral()
jcenter()
maven {
url "file:///Users/bouchard/Documents/web/public_html/maven/"
}
maven {
url "http://www.stat.ubc.ca/~bouchard/maven/"
}
maven {
url "http://www.biojava.org/download/maven/"
}
flatDir {
dirs 'build/libs'
}
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '18.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
compile group: 'junit', name: 'junit', version: '4.11'
compile group: 'ca.ubc.stat', name: 'tutorialj', version: '2.0.2'
compile group: 'ca.ubc.stat', name: 'binc', version: '1.2.1'
compile group: 'ca.ubc.stat', name: 'briefj', version: '2.4.1'
compile group: 'ca.ubc.stat', name: 'bayonet', version: '2.3.8'
compile group: 'ca.ubc', name: 'ahmc-java', version: '1.0.0'
compile group: 'org.jgrapht', name: 'jgrapht-dist', version: '0.9.0'
compile group: 'jebl', name: 'jebl', version: '2.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.3.2'
compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24'
compile 'com.google.code.gson:gson:2.3'
compile 'org.jblas:jblas:1.2.3'
compile 'gov.nist.math.jama:gov.nist.math.jama:1.1.1'
}
task(tutorialj, dependsOn: ['build','testClasses'], type: JavaExec) {
main = 'tutorialj.Main'
classpath {
configurations.compile
sourceSets.main.runtimeClasspath
sourceSets.test.runtimeClasspath
}
}
apply plugin: 'versions'
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 jar
archives sourcesJar
archives javadocJar
}
buildscript {
repositories {
maven { url "https://github.com/ben-manes/gradle-versions-plugin/raw/mvnrepo" }
mavenCentral()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.5-beta-1'
classpath 'de.undercouch:gradle-download-task:1.0'
}
}
compileJava.dependsOn(fetchDataFiles)