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