annotate build.gradle @ 0:f4f8570d1c56

initial OTP form
author smith@nwoca.org
date Mon, 12 Nov 2012 16:29:11 +0000
parents
children 91703efb1d29
rev   line source
0
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
1 apply from: "${gradle.ext.has('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation : 'http://hg.ssdt-ohio.org/browse/public/develkit'}/init.gradle"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
2
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
3 description = "ssdt.forms application"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
4
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
5 apply plugin: "war"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
6 apply plugin: "java"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
7 apply plugin: "groovy"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
8 apply plugin: "jetty"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
9 apply plugin: "idea"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
10
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
11
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
12 sourceCompatibility = "1.5"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
13 targetCompatibility = "1.5"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
14
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
15 group = "org.ssdt_ohio"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
16 version = "1.0-SNAPSHOT"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
17
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
18 /*
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
19 repositories {
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
20 mavenCentral()
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
21
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
22 // All things JBoss/Hibernate
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
23 mavenRepo name: "JBoss", url: "http://repository.jboss.org/nexus/content/groups/public/"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
24
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
25 // For stable versions of the tapx libraries
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
26 mavenRepo name: "HLS", url: "http://howardlewisship.com/repository/"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
27
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
28 // For non-stable versions of the tapx libraries
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
29 mavenRepo name: "HLS Snapshots", url: "http://howardlewisship.com/snapshot-repository/"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
30
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
31 // For access to Apache Staging (Preview) packages
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
32 mavenRepo name: "Apache Staging", url: "https://repository.apache.org/content/groups/staging"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
33 }
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
34 */
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
35
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
36 // This simulates Maven's "provided" scope, until it is officially supported by Gradle
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
37 // See http://jira.codehaus.org/browse/GRADLE-784
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
38
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
39 configurations {
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
40 provided
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
41 }
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
42
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
43 sourceSets {
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
44 main {
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
45 compileClasspath += configurations.provided
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
46 }
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
47 test {
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
48 compileClasspath += configurations.provided
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
49 runtimeClasspath += configurations.provided
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
50 }
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
51 }
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
52
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
53 dependencies {
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
54
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
55 groovy 'org.codehaus.groovy:groovy-all:2.0.1'
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
56 compile "org.apache.tapestry:tapestry-core:5.3.6"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
57 compile(group: 'me.davesmith', name: 'tapestry-bootstrap', version: '2.1-SNAPSHOT')
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
58 compile group: 'org.got5', name: 'tapestry5-jquery', version: '3.2.0'
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
59 compile "org.apache.tapestry:tapestry-yuicompressor:5.3.6"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
60
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
61 // Uncomment this to add support for file uploads:
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
62 // compile "org.apache.tapestry:tapestry-upload:5.3.6"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
63
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
64 provided "javax.servlet:servlet-api:2.5"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
65 }
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
66
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
67 test {
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
68 useTestNG()
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
69
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
70 options.suites("src/test/conf/testng.xml")
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
71
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
72 systemProperties["tapestry.service-reloading-enabled"] = "false"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
73 systemProperties["tapestry.execution-mode"] = "development"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
74
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
75 maxHeapSize = "600M"
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
76
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
77 jvmArgs("-XX:MaxPermSize=256M")
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
78
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
79 enableAssertions = true
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
80 }
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
81
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
82
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
83 jettyRun {
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
84 webAppSourceDirectory = file("src/main/webapp")
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
85 httpPort = 8086
f4f8570d1c56 initial OTP form
smith@nwoca.org
parents:
diff changeset
86 }