-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
159 lines (138 loc) · 4.46 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE'
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.7.4"
classpath 'net.errbuddy.plugins:babel-asset-pipeline:2.1.0'
classpath "org.grails.plugins:hibernate4:5.0.2"
classpath 'org.grails.plugins:database-migration:2.0.0.RC4'
classpath "com.moowork.gradle:gradle-node-plugin:1.0.1"
}
}
version "2.0.0"
group "errbuddy"
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "war"
apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"
apply plugin: "asset-pipeline"
apply plugin: "com.moowork.node"
ext {
grailsVersion = project.grailsVersion
gradleWrapperVersion = project.gradleWrapperVersion
}
repositories {
mavenLocal()
maven { url "http://dl.bintray.com/uberall/plugins" }
maven { url "http://dl.bintray.com/errbuddy/plugins" }
maven { url "https://repo.grails.org/grails/core" }
}
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.grails:grails-core"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-tomcat"
// include this and exclude the one above if you want to build a deployable war file
// provided "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.grails:grails-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:scaffolding"
compile "org.grails.plugins:hibernate4"
compile "org.hibernate:hibernate-ehcache"
console "org.grails:grails-console"
profile "org.grails.profiles:web:3.1.4"
runtime "com.h2database:h2"
compile 'org.grails.plugins:database-migration:2.0.0.RC4'
testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
runtime "org.grails.plugins:asset-pipeline"
runtime 'mysql:mysql-connector-java:5.1.36'
assets "com.bertramlabs.plugins:less-asset-pipeline:2.7.4"
compile 'redis.clients:jedis:2.6.0'
compile "org.grails.plugins:spring-security-rest-redis:2.0.0.M2"
compile "org.grails.plugins:spring-security-rest:2.0.0.M2"
compile "org.grails.plugins:spring-security-core:3.0.4"
compile "com.sendgrid:sendgrid-java:2.2.1"
compile 'org.jodd:jodd-http:3.6.6'
compile 'org.grails.plugins:joda-time:2.0.0'
compile "org.grails.plugins:errbuddy:2.2.1"
compile "com.uberall.plugins:uber-doc:2.0.4"
compile 'org.grails.plugins:elasticsearch:1.0.0.2'
compile 'org.grails.plugins:jesque-admin:0.6.5'
compile 'org.grails.plugins:redis:2.0.4'
compile 'org.grails.plugins:jesque:1.2.1-UBERALL'
compile 'net.errbuddy.plugins:babel-asset-pipeline:2.1.0'
compile 'org.jadira.usertype:usertype.jodatime:2.0.1'
}
sourceSets {
main {
resources {
srcDir 'grails-app/migrations'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}
assets {
minifyJs = false
minifyCss = false
enableSourceMaps = false
excludes = ['app/**.js', 'app/**.jsx', 'app/**.scss'] //Example Exclude GLOB pattern
minifyOptions = [
languageMode : 'ES6',
targetLanguage : 'ES5', //Can go from ES6 to ES5 for those bleeding edgers
optimizationLevel: 'SIMPLE',
]
configOptions = [
babel: [
enabled : true,
processor : 'webpack',
processJsFiles : false,
externalWebpackConfig: "webpack.prod.config.js",
nodeExec : System.getProperty('grails.babel.node.path') ?: ".nodejs/node-v10.10.0-linux-x64/bin/node"
]
]
}
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
}
}
bootRun {
jvmArgs("-Xms2G", "-Xmx2G")
}
node {
version = '10.10.0'
download = true
workDir = file("${project.projectDir}/.nodejs")
npmWorkDir = file("${project.projectDir}/.npm")
nodeModulesDir = file("${project.projectDir}")
}
war.archiveName "errbuddy.war"