Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. project
  2. subproject1
  3. subproject2
  4. ....
  5.  
  6. apply plugin: 'eclipse'
  7. apply plugin: 'java'
  8.  
  9. allprojects {
  10. group = 'com.app.pmc'
  11. }
  12.  
  13. subprojects {
  14. apply plugin: 'java'
  15. apply plugin: 'eclipse'
  16. repositories {
  17. mavenCentral()
  18. }
  19. dependencies {
  20. testCompile 'junit:junit:4.11'
  21. }
  22. }
  23.  
  24. buildscript {
  25. repositories {
  26. mavenCentral()
  27. jcenter()
  28. }
  29.  
  30. dependencies {
  31. classpath 'net.saliman:gradle-liquibase-plugin:1.0.0'
  32. classpath 'net.saliman:groovy-liquibase-dsl:1.0.0'
  33. classpath 'org.postgresql:postgresql:9.3-1102-jdbc41'
  34. classpath 'com.bmuschko:gradle-tomcat-plugin:2.0'
  35. }
  36. }
  37.  
  38. apply plugin: 'war'
  39. apply plugin: 'com.bmuschko.tomcat'
  40.  
  41. dependencies {
  42. compile project(':subproject-service')
  43.  
  44. compile 'org.springframework:spring-core:4.1.1.RELEASE'
  45. compile 'org.springframework:spring-context:4.1.1.RELEASE'
  46. compile 'org.springframework:spring-webmvc:4.1.1.RELEASE'
  47.  
  48. def tomcatVersion = '7.0.11'
  49. tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}"
  50. tomcat "org.apache.tomcat.embed:tomcat-embed-loggin-juli:${tomcatVersion}"
  51. tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
  52. exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
  53. }
  54.  
  55. tomcat {
  56. httpPort = 8080
  57. httpsPort = 8081
  58. }
  59.  
  60. }
  61.  
  62. FAILURE: Build failed with an exception.
  63.  
  64. * Where:
  65. Build file 'D:projectsubproject-webbuild.gradle' line: 2
  66.  
  67. * What went wrong:
  68. A problem occurred evaluating project ':subproject-web'.
  69. > Could not create task of type 'TomcatRun'.
  70.  
  71. * Try:
  72. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  73.  
  74. BUILD FAILED
  75.  
  76. tomcat "org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}"
  77.  
  78. buildscript {
  79. repositories {
  80. mavenCentral()
  81. jcenter()
  82. }
  83.  
  84. dependencies {
  85. classpath 'com.bmuschko:gradle-tomcat-plugin:2.0'
  86. }
  87. }
  88.  
  89. apply plugin: 'war'
  90. apply plugin: 'com.bmuschko.tomcat'
  91.  
  92. repositories {
  93. mavenCentral()
  94. jcenter()
  95. }
  96.  
  97. dependencies {
  98. compile 'org.springframework:spring-core:4.1.1.RELEASE'
  99. compile 'org.springframework:spring-context:4.1.1.RELEASE'
  100. compile 'org.springframework:spring-webmvc:4.1.1.RELEASE'
  101.  
  102. def tomcatVersion = '7.0.11'
  103. tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}"
  104. tomcat "org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}"
  105. tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
  106. exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
  107. }
  108. }
  109.  
  110. tomcat {
  111. httpPort = 8080
  112. httpsPort = 8081
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement