forked from burtbeckwith/grails-hibernate-plugin
/
BuildConfig.groovy
79 lines (68 loc) · 3.14 KB
/
BuildConfig.groovy
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
if(System.getenv('TRAVIS_BRANCH')) {
grails.project.repos.grailsCentral.username = System.getenv("GRAILS_CENTRAL_USERNAME")
grails.project.repos.grailsCentral.password = System.getenv("GRAILS_CENTRAL_PASSWORD")
}
grails.project.work.dir = 'target'
forkConfig = false
grails.project.fork = [
test: forkConfig, // configure settings for the test-app JVM
run: forkConfig, // configure settings for the run-app JVM
war: forkConfig, // configure settings for the run-war JVM
console: forkConfig, // configure settings for the Swing console JVM
compile: forkConfig // configure settings for compilation
]
grails.project.dependency.resolver = "maven"
grails.project.dependency.resolution = {
inherits "global"
log "warn"
repositories {
mavenLocal()
grailsCentral()
mavenRepo "https://repo.grails.org/grails/core"
mavenRepo "https://repo.grails.org/grails/libs-snapshots-local"
}
dependencies {
String datastoreVersion = '3.1.5.RELEASE'
String hibernateVersion = '3.6.10.Final'
compile "org.grails:grails-datastore-core:$datastoreVersion",
"org.grails:grails-datastore-gorm:$datastoreVersion",
"org.grails:grails-datastore-gorm-hibernate:$datastoreVersion",
"org.grails:grails-datastore-simple:$datastoreVersion", {
exclude group:'org.springframework', name:'spring-context'
exclude group:'org.springframework', name:'spring-core'
exclude group:'org.springframework', name:'spring-beans'
exclude group:'org.grails', name:'grails-bootstrap'
exclude group:'org.grails', name:'grails-core'
exclude group:'org.grails', name:'grails-async'
}
compile 'commons-collections:commons-collections:3.2.1'
compile("org.hibernate:hibernate-core:$hibernateVersion") {
exclude group:'commons-logging', name:'commons-logging'
exclude group:'commons-collections', name:'commons-collections'
exclude group:'org.slf4j', name:'slf4j-api'
exclude group:'xml-apis', name:'xml-apis'
exclude group:'dom4j', name:'dom4j'
exclude group:'antlr', name: 'antlr'
exclude group:'org.hibernate.javax.persistence', name:'hibernate-jpa-2.0-api'
}
compile "javax.validation:validation-api:1.0.0.GA"
compile "org.hibernate:hibernate-validator:4.1.0.Final"
compile "org.hibernate:hibernate-entitymanager:$hibernateVersion", {
exclude group:'javassist', name:'javassist'
exclude group:'org.hibernate.javax.persistence', name:'hibernate-jpa-2.0-api'
}
compile "org.hibernate:hibernate-commons-annotations:3.2.0.Final"
runtime "org.hibernate:hibernate-ehcache:$hibernateVersion", {
exclude group: 'net.sf.ehcache', name: 'ehcache-core'
}
runtime "net.sf.ehcache:ehcache:2.9.0"
}
plugins {
build(':release:3.1.0', ':rest-client-builder:2.1.0') {
export = false
}
test ':scaffolding:1.0.0', {
export = false
}
}
}