Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. ---
  2. grails:
  3. profile: web
  4. codegen:
  5. defaultPackage: org.samatvam
  6. info:
  7. app:
  8. name: '@info.app.name@'
  9. version: '@info.app.version@'
  10. grailsVersion: '@info.app.grailsVersion@'
  11. spring:
  12. groovy:
  13. template:
  14. check-template-location: false
  15.  
  16. ---
  17. grails:
  18. mime:
  19. disable:
  20. accept:
  21. header:
  22. userAgents:
  23. - Gecko
  24. - WebKit
  25. - Presto
  26. - Trident
  27. types:
  28. all: '*/*'
  29. atom: application/atom+xml
  30. css: text/css
  31. csv: text/csv
  32. form: application/x-www-form-urlencoded
  33. html:
  34. - text/html
  35. - application/xhtml+xml
  36. js: text/javascript
  37. json:
  38. - application/json
  39. - text/json
  40. multipartForm: multipart/form-data
  41. pdf: application/pdf
  42. rss: application/rss+xml
  43. text: text/plain
  44. hal:
  45. - application/hal+json
  46. - application/hal+xml
  47. xml:
  48. - text/xml
  49. - application/xml
  50. urlmapping:
  51. cache:
  52. maxsize: 1000
  53. controllers:
  54. defaultScope: singleton
  55. converters:
  56. encoding: UTF-8
  57. views:
  58. default:
  59. codec: html
  60. gsp:
  61. encoding: UTF-8
  62. htmlcodec: xml
  63. codecs:
  64. expression: html
  65. scriptlets: html
  66. taglib: none
  67. staticparts: none
  68. ---
  69. hibernate:
  70. cache:
  71. queries: false
  72. use_second_level_cache: true
  73. use_query_cache: false
  74. region.factory_class: 'org.hibernate.cache.ehcache.EhCacheRegionFactory'
  75.  
  76. endpoints:
  77. jmx:
  78. unique-names: true
  79.  
  80. dataSource:
  81. pooled: true
  82. jmxExport: true
  83. driverClassName: org.h2.Driver
  84. username: sa
  85. password:
  86.  
  87. environments:
  88. development:
  89. grails:
  90. mongodb:
  91. host: "localhost"
  92. port: 27017
  93. username: "blah"
  94. password: "blah"
  95. databaseName: "emrDB"
  96. connectionString: "mongodb://blah:blah@localhost:27017/emrDB"
  97.  
  98. test:
  99. dataSource:
  100. dbCreate: create-drop
  101. url: mongodb://blah:blah@localhost:27017/emrDB;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
  102. production:
  103. dataSource:
  104. dbCreate: update
  105. url: jdbc:h2:./prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
  106. properties:
  107. jmxEnabled: true
  108. initialSize: 5
  109. maxActive: 50
  110. minIdle: 5
  111. maxIdle: 25
  112. maxWait: 10000
  113. maxAge: 600000
  114. timeBetweenEvictionRunsMillis: 5000
  115. minEvictableIdleTimeMillis: 60000
  116. validationQuery: SELECT 1
  117. validationQueryTimeout: 3
  118. validationInterval: 15000
  119. testOnBorrow: true
  120. testWhileIdle: true
  121. testOnReturn: false
  122. jdbcInterceptors: ConnectionState
  123. defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
  124.  
  125. buildscript {
  126. ext {
  127. grailsVersion = project.grailsVersion
  128. }
  129. repositories {
  130. mavenLocal()
  131. maven { url "https://repo.grails.org/grails/core" }
  132. }
  133. dependencies {
  134. classpath "org.grails:grails-gradle-plugin:$grailsVersion"
  135. classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.5.0'
  136. classpath "org.grails.plugins:hibernate:4.3.10.5"
  137. }
  138. }
  139.  
  140. plugins {
  141. id "io.spring.dependency-management" version "0.5.4.RELEASE"
  142. }
  143.  
  144. version "0.1"
  145. group "org.emr"
  146.  
  147. apply plugin: "spring-boot"
  148. apply plugin: "war"
  149. apply plugin: "asset-pipeline"
  150. apply plugin: 'eclipse'
  151. apply plugin: 'idea'
  152. apply plugin: "org.grails.grails-web"
  153. apply plugin: "org.grails.grails-gsp"
  154.  
  155. ext {
  156. grailsVersion = project.grailsVersion
  157. gradleWrapperVersion = project.gradleWrapperVersion
  158. }
  159.  
  160. assets {
  161. minifyJs = true
  162. minifyCss = true
  163. }
  164.  
  165. repositories {
  166. mavenLocal()
  167. mavenCentral()
  168. maven { url "https://repo.grails.org/grails/core" }
  169. maven {url "http://code.google.com/p/json-simple/"}
  170. }
  171.  
  172. dependencyManagement {
  173. imports {
  174. mavenBom "org.grails:grails-bom:$grailsVersion"
  175. }
  176. applyMavenExclusions false
  177. }
  178.  
  179. dependencies {
  180. compile "org.springframework.boot:spring-boot-starter-logging"
  181. compile "org.springframework.boot:spring-boot-starter-actuator"
  182. compile "org.springframework.boot:spring-boot-autoconfigure"
  183. compile "org.springframework.boot:spring-boot-starter-tomcat"
  184. compile "org.grails:grails-dependencies"
  185. compile "org.grails:grails-web-boot"
  186.  
  187. //compile "org.grails.plugins:hibernate"
  188.  
  189. compile "org.grails.plugins:cache"
  190. //compile "org.hibernate:hibernate-ehcache"
  191. compile "org.grails.plugins:scaffolding"
  192.  
  193. runtime "org.grails.plugins:asset-pipeline"
  194.  
  195. testCompile "org.grails:grails-plugin-testing"
  196. testCompile "org.grails.plugins:geb"
  197.  
  198. // Note: It is recommended to update to a more robust driver (Chrome, Firefox etc.)
  199. testRuntime 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.44.0'
  200.  
  201. console "org.grails:grails-console"
  202.  
  203. //--------project-plugin-start------------------------//
  204. compile "org.grails.plugins:mail:1.0.7"
  205. compile "org.grails.plugins:mongodb:5.0.0.RC1"
  206. compile "org.grails.plugins:calendar:1.2.1"
  207. //compile "org.grails.plugins:jquery-ui:1.10.4"
  208. compile "org.grails.plugins:joda-time:1.5"
  209. compile "org.grails.plugins:rest:0.8"
  210. //compile "org.grails.plugins:spring-security-core:2.0.0"
  211. compile 'org.grails.plugins:spring-security-core:3.0.3'
  212. //runtime "org.grails.plugins:jquery:1.11.1"
  213. runtime "org.grails.plugins:resources:1.2.7"
  214. runtime 'org.grails.plugins:twitter-bootstrap:3.3.5'
  215. //build "org.grails.plugins:tomcat:7.0.52.1"
  216. compile 'com.googlecode.json-simple:json-simple:1.1'
  217.  
  218. compile "org.grails.plugins:hibernate4:5.0.0.RC1"
  219.  
  220. //compile "org.mongodb:mongodb-driver:3.0.2"
  221. // runtime 'org.springframework.data:spring-data-mongodb:1.8.1.RELEASE'
  222.  
  223. //----------------------------------------------------//
  224. }
  225.  
  226. task wrapper(type: Wrapper) {
  227. gradleVersion = gradleWrapperVersion
  228. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement