-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (86 loc) · 2.95 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
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 = '5.0.6'
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'
bioModel group: 'org.intermine', name: 'bio-model', version: bioVersion, transitive: false
mergeModel group : "org.intermine", name: "intermine-objectstore", version: imVersion
}
dbModelConfig {
objectStoreName = "os.bio-test"
modelName = "genomic"
defaultInterminePropertiesFile = "default.intermine.bio-test.properties"
}
// uncomment to specify an extra additions file for your bio-sources
// this file will be merged with the additions file for each data source
// and included in each source JAR.
//bioSourceDBModelConfig {
// extraAdditionsFile = "MY-MINE_additions.xml"
//}
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
}