-
Notifications
You must be signed in to change notification settings - Fork 351
/
build.gradle
56 lines (47 loc) · 1.87 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
ext {
imVersion = "5.0.5"
taskGroup = "InterMine"
minePropertyFileName = "testmodel.properties"
minePropertyFile = "${System.env.HOME}/.intermine/$minePropertyFileName"
println "Using properties file: '$minePropertyFile' "
}
subprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven {
url 'http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/'
}
maven { url 'https://clojars.org/repo' }
}
configurations {
commonResources
}
dependencies {
compile group: 'ant', name: 'ant', version: '1.6.5'
compile group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: '2.17.0'
commonResources group: "org.intermine", name: "intermine-resources", version: imVersion
}
task copyMineProperties(type: Copy) {
description "Copies mine specific intermine.properties file (from .intermine directory) into resources output to be included in the war"
from minePropertyFile
into sourceSets.main.output.resourcesDir
rename { fileName -> fileName.replace("testmodel.properties", "intermine.properties") }
inputs.sourceFiles.stopExecutionIfEmpty()
}
task copyDefaultProperties(type: Copy) {
description "Copies default.intermine.properties file (from resources project) into resources output to be included in the war"
dependsOn 'processResources'
from({ zipTree(configurations.commonResources.singleFile) }) {
include "default.intermine.test.properties"
}
into sourceSets.main.output.resourcesDir
rename { fileName -> fileName.replace("default.intermine.test.properties", "default.intermine.properties") }
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.9'
}