genuinefafa

BuildConfig for GrailsTodo

Jan 25th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 3.14 KB | None | 0 0
  1. grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0)
  2. grails.project.class.dir = "target/classes"
  3. grails.project.test.class.dir = "target/test-classes"
  4. grails.project.test.reports.dir = "target/test-reports"
  5. grails.project.target.level = 1.6
  6. grails.project.source.level = 1.6
  7. //grails.plugin.location.'platformCore' = '../platform-core'
  8. //grails.plugin.location.'eventsSi' = '../plugin-platform-project/grails-plugin-platform-incubator/events-si'
  9. //grails.plugin.location.'eventsPush' = '../plugin-platform-project/events-push'
  10. //grails.project.war.file = "target/${appName}-${appVersion}.war"
  11.  
  12.  
  13. // @smaldini remember, it does work, it doesn't upgrade to websocket connection :( -
  14. grails{
  15.     tomcat{
  16.         nio = true
  17.     }
  18. }
  19.  
  20. grails.project.dependency.resolution = {
  21.     // inherit Grails' default dependencies
  22.     inherits("global") {
  23.         // specify dependency exclusions here; for example, uncomment this to disable ehcache:
  24.         // excludes 'ehcache'
  25.     }
  26.     log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
  27.     checksums true // Whether to verify checksums on resolve
  28.  
  29.     repositories {
  30.         inherits true // Whether to inherit repository definitions from plugins
  31.  
  32.         mavenLocal()
  33.         grailsCentral()
  34.         grailsPlugins()
  35.         grailsHome()
  36.  
  37.         mavenCentral()
  38.  
  39.         // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
  40.         //mavenRepo "https://oss.sonatype.org/content/repositories/snapshots"
  41.         //mavenRepo "http://repository.codehaus.org"
  42.         //mavenRepo "http://download.java.net/maven/2/"
  43.         //mavenRepo "http://repository.jboss.com/maven2/"
  44.         mavenRepo "https://oss.sonatype.org/content/repositories/snapshots"
  45.         mavenRepo "http://maven.springframework.org/milestone/"
  46.     }
  47.     dependencies {
  48.         // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
  49.         runtime 'mysql:mysql-connector-java:5.1.18'
  50.         runtime 'org.springframework.integration:spring-integration-amqp:2.1.3.RELEASE'
  51.         //runtime 'org.springframework.integration:spring-integration-jmx:2.1.1.RELEASE'
  52.         compile('org.atmosphere:atmosphere-runtime:1.1.0.beta2') {
  53.             excludes 'slf4j-api', 'atmosphere-ping'
  54.         }
  55.  
  56.     }
  57.  
  58.     plugins {
  59.         def eventsVersion = "1.0.M3"
  60.        
  61.         runtime ":jquery:1.8.3"
  62.         runtime ":resources:1.2.RC3"
  63.         runtime(":coffeescript-resources:0.3.2"){
  64.             exclude 'resources'
  65.         }
  66.  
  67.         runtime ":cloud-foundry:1.2.3"
  68.         runtime ":hibernate:$grailsVersion"
  69.         runtime ":rabbitmq:1.0.0.RC1"
  70.  
  71.         runtime (":events-si:${eventsVersion}") {
  72.             exclude "platform-core"
  73.         }
  74.         runtime (":events-push:1.0.M7")
  75.  
  76.         // Uncomment these (or add new ones) to enable additional resources capabilities
  77.         //runtime ":zipped-resources:1.0"
  78.         //runtime ":cached-resources:1.0"
  79.         //runtime ":yui-minify-resources:0.1.4"
  80.  
  81.         build ":tomcat:$grailsVersion"
  82.  
  83.         //runtime ":database-migration:1.0"
  84.     }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment