javaprojects.gradle 971 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. apply id: 'java'
  2. springVersion = '3.0.1.RELEASE'
  3. springLdapVersion = '1.3.0.RELEASE'
  4. ehcacheVersion = '1.6.2'
  5. aspectjVersion = '1.6.8'
  6. apacheDsVersion = '1.5.5'
  7. jstlVersion = '1.1.2'
  8. jettyVersion = '6.1.22'
  9. hsqlVersion = '1.8.0.10'
  10. configurations {
  11. provided
  12. compile.extendsFrom provided
  13. }
  14. dependencies {
  15. compile 'commons-logging:commons-logging:1.1.1'
  16. compile ("org.springframework:spring-core:$springVersion") {
  17. exclude(group: 'commons-logging', module: 'commons-logging')
  18. }
  19. testCompile 'junit:junit:4.7',
  20. 'org.mockito:mockito-core:1.8.3',
  21. 'org.jmock:jmock:2.5.1',
  22. 'org.jmock:jmock-junit4:2.5.1',
  23. 'org.hamcrest:hamcrest-core:1.1',
  24. 'org.hamcrest:hamcrest-library:1.1',
  25. "org.springframework:spring-test:$springVersion"
  26. }
  27. test {
  28. onlyIf {
  29. !project.hasProperty('skipTests')
  30. }
  31. jvmArgs = ['-ea', '-Xms128m', '-Xmx500m', '-XX:MaxPermSize=128m']
  32. }