Guest User

Untitled

a guest
Jan 30th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. apply plugin: 'java'
  2. apply plugin: 'war'
  3.  
  4.  
  5. String spring_version = "3.1.2.RELEASE@jar" ;
  6. String spring_sec_version = "3.1.2.RELEASE@jar" ;
  7. String hibernate_version = "4.1.7.Final@jar" ;
  8.  
  9. repositories {
  10. mavenCentral()
  11. }
  12.  
  13. // "org.springframework:spring-oxm:"+spring_version,
  14.  
  15. List spring = [
  16. "org.springframework:spring-context:"+spring_version,
  17. "org.springframework:spring-beans:"+spring_version,
  18. "org.springframework:spring-core:"+spring_version,
  19. "org.springframework:spring-aop:"+spring_version,
  20. "org.springframework:spring-expression:"+spring_version,
  21. "org.springframework:spring-jdbc:"+spring_version,
  22. "org.springframework:spring-tx:"+spring_version,
  23. "org.springframework:spring-web:"+spring_version,
  24. "org.springframework:spring-webmvc:"+spring_version,
  25. "org.springframework:spring-orm:"+spring_version,
  26. "org.springframework:spring-asm:"+spring_version
  27. ]
  28.  
  29. List spring_security = [
  30. "org.springframework.security:spring-security core:"+spring_sec_version,
  31. "org.springframework.security:spring-security-config:"+spring_sec_version,
  32. "org.springframework.security:spring-security-web:"+spring_sec_version
  33. ]
  34.  
  35. List spring_aop = [
  36. "aopalliance:aopalliance:1.0@jar",
  37. "cglib:cglib-nodep:2.2.2@jar"
  38. ]
  39.  
  40. List validation_lib = [
  41. "org.hibernate:hibernate-validator:4.3.0.Final@jar",
  42. "javax.validation:validation-api:1.0.0.GA@jar"
  43. ]
  44.  
  45. List log_lib = [
  46. "org.jboss.logging:jboss-logging:3.1.2.GA@jar",
  47. "org.slf4j:slf4j-api:1.6.6@jar",
  48. "org.slf4j:slf4j-jdk14:1.6.6@jar",
  49. "org.slf4j:log4j-over-slf4j:1.6.6@jar",
  50. "org.slf4j:jcl-over-slf4j:1.6.6@jar",
  51. "log4j:log4j:1.2.17@jar"
  52. ]
  53.  
  54. List hibernate_api = [
  55. "org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final@jar"
  56. ]
  57.  
  58. List hibernate = [
  59. "org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:1.0.1.Final@jar",
  60. "org.hibernate.common:hibernate-commons-annotations:4.0.1.Final@jar",
  61. "org.javassist:javassist:3.16.1-GA",
  62. "org.hibernate:hibernate-entitymanager:"+hibernate_version,
  63. "org.hibernate:hibernate-core:"+hibernate_version
  64. ]
  65.  
  66. dependencies {
  67. testCompile group: 'junit', name: 'junit', version: '4.10'
  68. testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
  69. compile hibernate_api
  70. compile hibernate
  71. compile spring
  72. compile spring_security
  73. compile spring_aop
  74. compile "org.codehaus.jackson:jackson-jaxrs:1.9.9" //lib jackson for JSON
  75. compile validation_lib
  76. compile log_lib
  77. runtime "postgresql:postgresql:9.1-901.jdbc4@jar"
  78. compile "rhino:js:1.7R2@jar"
  79. }
  80.  
  81. task copyDependencies(type: Copy) {
  82. from (configurations.compile)
  83. into "src/main/resources"
  84. }
  85.  
  86. task copyTestDependencies(type: Copy) {
  87. from (configurations.testCompile)
  88. into "src/test/resources"
  89. }
  90.  
  91. build.dependsOn(copyDependencies)
  92. build.dependsOn(copyTestDependencies)
Add Comment
Please, Sign In to add comment