-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
95 lines (81 loc) · 2.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
import com.sun.org.apache.xalan.internal.xsltc.compiler.Copy
buildscript {
repositories {
mavenLocal()
jcenter()
maven {
url "https://oss.jfrog.org/artifactory/oss-snapshot-local"
}
}
dependencies {
classpath group: 'org.intermine', name: 'plugin', version: System.getProperty("imVersion")
}
}
ext {
// set here to make available to individual bio-sources
bioVersion = System.getProperty("bioVersion")
imVersion = System.getProperty("imVersion")
}
subprojects {
group = 'org.intermine'
version = '4.1.0'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'dbmodel'
apply plugin: 'biosource-dbmodel'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
jcenter()
maven {
url "https://oss.jfrog.org/artifactory/oss-snapshot-local"
}
}
configurations {
bioModel
mergeModel
}
dependencies {
compile group: 'log4j', name: 'log4j', version: '1.2.17'
compile group: 'org.intermine', name: 'bio-core', version: bioVersion
compile group : "org.intermine", name: "intermine-resources", version: imVersion // log4j
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
testCompile group: 'junit', name: 'junit', version: '4.8.2'
testCompile group: "org.intermine", name: "intermine-integrate", version: imVersion, classifier: "testClasses"
testCompile group: 'xmlunit', name: 'xmlunit', version: '1.0'
mergeModel group : "org.intermine", name: "intermine-objectstore", version: imVersion
bioModel group: 'org.intermine', name: 'bio-model', version: bioVersion, transitive: false
}
dbModelConfig {
objectStoreName = "os.bio-test"
modelName = "genomic"
defaultInterminePropertiesFile = "default.intermine.bio-test.properties"
}
task copyMineProperties() {
dependsOn 'processResources'
doLast {
copy {
from "${System.env.HOME}/.intermine/intermine-bio-test.properties"
into sourceSets.main.output.resourcesDir
rename { fileName -> fileName.replace('intermine-bio-test.properties', 'intermine.properties') }
}
}
}
jar {
exclude "intermine.properties"
}
tasks.withType(Test) {
scanForTestClasses = false
include '**/*Test.class'
}
test {
ignoreFailures = true
forkEvery = 1
}
}
task testReport(type: TestReport) {
destinationDir = file("$buildDir/reports/allTests")
// Include the results from the `test` task in all subprojects
reportOn subprojects*.test
}