build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. description = "hello application"
  2. apply plugin: "war"
  3. apply plugin: "java"
  4. apply plugin: "jetty"
  5. apply plugin: "idea"
  6. sourceCompatibility = "1.5"
  7. targetCompatibility = "1.5"
  8. group = "hello"
  9. version = "1.0-SNAPSHOT"
  10. repositories {
  11. mavenCentral()
  12. // All things JBoss/Hibernate
  13. mavenRepo name: "JBoss", url: "http://repository.jboss.org/nexus/content/groups/public/"
  14. }
  15. // This simulates Maven's "provided" scope, until it is officially supported by Gradle
  16. // See http://jira.codehaus.org/browse/GRADLE-784
  17. configurations {
  18. provided
  19. }
  20. sourceSets {
  21. main {
  22. compileClasspath += configurations.provided
  23. }
  24. test {
  25. compileClasspath += configurations.provided
  26. runtimeClasspath += configurations.provided
  27. }
  28. }
  29. dependencies {
  30. compile "mysql:mysql-connector-java:5.1.19"
  31. compile "org.hibernate:hibernate-core:3.6.3.Final"
  32. compile "org.apache.tapestry:tapestry-hibernate:5.3.6"
  33. compile "com.fasterxml.jackson.core:jackson-databind:2.3.0"
  34. // This adds automatic compression of JavaScript and CSS in production mode:
  35. compile "org.apache.tapestry:tapestry-yuicompressor:5.3.6"
  36. // Uncomment this to add support for file uploads:
  37. // compile "org.apache.tapestry:tapestry-upload:5.3.6"
  38. provided "javax.servlet:servlet-api:2.5"
  39. }
  40. test {
  41. useTestNG()
  42. options.suites("src/test/conf/testng.xml")
  43. systemProperties["tapestry.service-reloading-enabled"] = "false"
  44. systemProperties["tapestry.execution-mode"] = "development"
  45. maxHeapSize = "600M"
  46. jvmArgs("-XX:MaxPermSize=256M")
  47. enableAssertions = true
  48. }
  49. // TODO: Configure execution mode for jettyRun task