Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. maven { url "https://repo.grails.org/grails/core" }
  4. }
  5. dependencies {
  6. classpath "org.grails:grails-gradle-plugin:$grailsVersion"
  7. classpath "org.grails.plugins:hibernate5:7.0.0"
  8. classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.0"
  9. classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.0.10"
  10. }
  11. }
  12.  
  13. version "0.1"
  14.  
  15. apply plugin:"eclipse"
  16. apply plugin:"idea"
  17. //apply plugin:"war"
  18. apply plugin:"org.grails.grails-web"
  19. apply plugin:"com.github.erdi.webdriver-binaries"
  20. apply plugin:"org.grails.grails-gsp"
  21. apply plugin:"com.bertramlabs.asset-pipeline"
  22.  
  23. repositories {
  24. maven { url "https://repo.grails.org/grails/core" }
  25. }
  26.  
  27. configurations {
  28. developmentOnly
  29. runtimeClasspath {
  30. extendsFrom developmentOnly
  31. }
  32. }
  33.  
  34. dependencies {
  35. developmentOnly("org.springframework.boot:spring-boot-devtools")
  36. compile "org.springframework.boot:spring-boot-starter-logging"
  37. compile "org.springframework.boot:spring-boot-autoconfigure"
  38. compile "org.grails:grails-core"
  39. compile "org.springframework.boot:spring-boot-starter-actuator"
  40. provided "org.springframework.boot:spring-boot-starter-tomcat"
  41. compile "org.grails:grails-web-boot"
  42. compile "org.grails:grails-logging"
  43. compile "org.grails:grails-plugin-rest"
  44. compile "org.grails:grails-plugin-databinding"
  45. compile "org.grails:grails-plugin-i18n"
  46. compile "org.grails:grails-plugin-services"
  47. compile "org.grails:grails-plugin-url-mappings"
  48. compile "org.grails:grails-plugin-interceptors"
  49. compile "org.grails.plugins:cache"
  50. compile "org.grails.plugins:async"
  51. compile "org.grails.plugins:scaffolding"
  52. compile "org.grails.plugins:events"
  53. compile "org.grails.plugins:hibernate5"
  54. compile "org.hibernate:hibernate-core:5.4.0.Final"
  55. compile "org.grails.plugins:gsp"
  56. compileOnly "io.micronaut:micronaut-inject-groovy"
  57. console "org.grails:grails-console"
  58. profile "org.grails.profiles:web"
  59. runtime "org.glassfish.web:el-impl:2.1.2-b03"
  60. runtime "com.h2database:h2"
  61. runtime "org.apache.tomcat:tomcat-jdbc"
  62. runtime "javax.xml.bind:jaxb-api:2.3.0"
  63. runtime "com.bertramlabs.plugins:asset-pipeline-grails:3.0.10"
  64. testCompile "org.grails:grails-gorm-testing-support"
  65. testCompile "org.mockito:mockito-core"
  66. testCompile "org.grails:grails-web-testing-support"
  67. testCompile "org.grails.plugins:geb"
  68. testCompile "org.seleniumhq.selenium:selenium-remote-driver:3.14.0"
  69. testCompile "org.seleniumhq.selenium:selenium-api:3.14.0"
  70. testCompile "org.seleniumhq.selenium:selenium-support:3.14.0"
  71. testRuntime "org.seleniumhq.selenium:selenium-chrome-driver:3.14.0"
  72. testRuntime "org.seleniumhq.selenium:selenium-firefox-driver:3.14.0"
  73.  
  74.  
  75. //Hibernate cache
  76. compile "org.hibernate:hibernate-ehcache"
  77.  
  78. //mysql plugin
  79. runtime 'mysql:mysql-connector-java:8.0.17'
  80. //mail sending plugin
  81. compile 'org.grails.plugins:mail:2.0.0'
  82.  
  83. //Security & OAuth
  84. compile 'org.grails.plugins:spring-security-core:4.0.0.RC2'
  85. compile 'org.grails.plugins:spring-security-ui:4.0.0.M1'
  86.  
  87. // compile "org.apache.httpcomponents:httpclient:4.5.5"
  88. // compile "org.apache.commons:commons-parent:35"
  89.  
  90. //CSV file renderer
  91. compile 'org.grails.plugins:csv:1.0'
  92.  
  93. compile 'org.grails.plugins:wkhtmltopdf:1.0.0.RC9'
  94. compile "org.grails.plugins:export:2.0.0"
  95.  
  96. //Web runner for heroku
  97. // developmentOnly 'com.github.jsimone:webapp-runner:9.0.24.1'
  98.  
  99. //fields plugin
  100. compile 'org.grails.plugins:fields:3.0.0.RC1'
  101.  
  102. //Date/Time Utils
  103. compile 'org.codehaus.groovy:groovy-dateutil:2.5.8'
  104. }
  105.  
  106. bootRun {
  107. jvmArgs(
  108. '-Dspring.output.ansi.enabled=always',
  109. '-noverify',
  110. '-XX:TieredStopAtLevel=1',
  111. '-Xmx1024m')
  112. sourceResources sourceSets.main
  113. String springProfilesActive = 'spring.profiles.active'
  114. systemProperty springProfilesActive, System.getProperty(springProfilesActive)
  115. }
  116.  
  117. webdriverBinaries {
  118. chromedriver '2.45.0'
  119. geckodriver '0.24.0'
  120. }
  121.  
  122. tasks.withType(Test) {
  123. systemProperty "geb.env", System.getProperty('geb.env')
  124. systemProperty "geb.build.reportsDir", reporting.file("geb/integrationTest")
  125. systemProperty "webdriver.chrome.driver", System.getProperty('webdriver.chrome.driver')
  126. systemProperty "webdriver.gecko.driver", System.getProperty('webdriver.gecko.driver')
  127. }
  128.  
  129. assets {
  130. minifyJs = true
  131. minifyCss = true
  132. }
  133.  
  134. task stage() {
  135. dependsOn clean, assemble
  136. }
  137. assemble.mustRunAfter clean
  138.  
  139. task copyToLib(type: Copy) {
  140. into "$buildDir/server"
  141. // from(configurations.compile) {
  142. // include "webapp-runner*"
  143. // }
  144. }
  145.  
  146. //stage.dependsOn(copyToLib)
  147.  
  148. tasks.stage.doLast() {
  149. delete fileTree(dir: "build/distributions")
  150. delete fileTree(dir: "build/assetCompile")
  151. delete fileTree(dir: "build/distributions")
  152. delete fileTree(dir: "build/libs", exclude: "*.jar")
  153. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement