Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. maven { url "http://repo.spring.io/libs-release" }
  4. mavenLocal()
  5. }
  6. dependencies {
  7. classpath("org.springframework.boot:spring-boot-gradle-plugin:1.0.1.RELEASE")
  8. classpath 'org.gradle.api.plugins:gradle-tomcat-plugin:1.2.4'
  9. }}
  10.  
  11. apply plugin: 'java'
  12. apply plugin: 'eclipse'
  13. apply plugin: 'spring-boot'
  14. apply plugin: 'war'
  15. apply plugin: 'groovy'
  16. apply plugin: 'tomcat'
  17.  
  18.  
  19. eclipse {
  20. jdt {
  21. sourceCompatibility = 1.8
  22. targetCompatibility = 1.8
  23. }}
  24.  
  25. jar {
  26. baseName = 'myproject'
  27. version = '0.1.0' }
  28.  
  29. repositories {
  30. mavenCentral()
  31. maven { url "http://repo.spring.io/libs-release" } }
  32.  
  33. dependencies {
  34. compile('commons-fileupload:commons-fileupload:1.3.1')
  35. compile("org.codehaus.jackson:jackson-mapper-asl:1.9.0")
  36. compile("org.springframework.boot:spring-boot-starter-web")
  37. compile("org.springframework.data:spring-data-mongodb")
  38. compile("org.springframework.security:spring-security-crypto:3.2.3.RELEASE")
  39. compile("com.fasterxml.jackson.core:jackson-databind")
  40. compile("joda-time:joda-time:2.2")
  41. compile("org.apache.directory.studio:org.apache.commons.codec:1.6")
  42. compile('com.amazonaws:aws-java-sdk:1.2.1')
  43. testCompile("junit:junit")
  44. runtime 'javax.servlet:jstl:1.2'
  45. providedCompile group:"org.apache.tomcat", name:"tomcat-catalina", version:"7.0.47" }
  46.  
  47.  
  48. dependencies {
  49. def tomcatVersion = '7.0.47'
  50. tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
  51. "org.apache.tomcat.embed:tomcat-embed-logging-log4j:${tomcatVersion}"
  52. tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
  53. exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
  54. } }
  55.  
  56.  
  57. tomcatRun { daemon = true
  58. httpPort = 8080
  59. outputFile = file('/logs/tomcat.log')
  60. stopKey = 'ctl-d'
  61. webDefaultXml = file('src/main/webapp/WEB-INF/web.xml') }
  62.  
  63. tomcatRunWar { outputFile = file('/logs/tomcat.log') }
  64. tomcatStop { stopKey = 'ctl-d' }
  65.  
  66. gradle dependencies > foo.txt
  67.  
  68. "org.apache.tomcat.embed:tomcat-embed-logging-log4j:${tomcatVersion}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement