-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
95 lines (80 loc) · 2.08 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
plugins {
id "java-library"
id "org.openmicroscopy.project" version "5.7.0"
id "org.openmicroscopy.dsl" version "5.5.2"
}
group = "org.openmicroscopy"
version = "5.7.1-SNAPSHOT"
ext {
databaseType = "psql"
}
repositories {
mavenLocal()
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
testImplementation("org.testng:testng:7.5")
// Needs updating to later versions
api("org.springframework:spring-orm:4.3.14.RELEASE")
api("org.springframework:spring-context:4.3.14.RELEASE")
api("org.springframework:spring-context-support:4.3.22.RELEASE")
api("org.hibernate:hibernate-core:3.6.10.Final")
api("org.hibernate:hibernate-search:3.4.2.Final")
// Our libraries
api("ome:formats-gpl:8.0.1")
// Unidata
api("edu.ucar:bufr:3.0"){
exclude group: "edu.ucar", module: "netcdf"
}
api("edu.ucar:udunits:4.5.5")
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
// enable TestNG support (default is JUnit)
useTestNG() {
suites "src/test/resources/unit.testng.xml"
}
dependsOn cleanTest
}
dsl {
database databaseType
outputDir file("build/${databaseType}")
multiFile {
java {
template "object.vm"
outputDir "java"
formatOutput = { st ->
"${st.getPackage()}/${st.getShortname()}.java"
}
}
}
singleFile {
hibernate {
template "cfg.vm"
outputFile "resources/hibernate.cfg.xml"
}
sql {
template "views.vm"
outputFile "resources/views.sql"
}
enums {
template "enums.vm"
outputFile "resources/enums.properties"
}
}
}
processResources {
with copySpec {
from 'src/main/resources'
// Set db profile
filter { String line ->
line.startsWith('omero.db.profile') ? 'omero.db.profile='+databaseType : line
}
}
}