Author: hlship
Date: Mon Oct 17 17:58:30 2011
New Revision: 1185308
URL: http://svn.apache.org/viewvc?rev=1185308&view=rev
Log:
Update the quickstart archetype to provide a Gradle build.gradle file as well
as a Maven pom.xml
Added:
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/build.gradle
Added:
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/build.gradle
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/build.gradle?rev=1185308&view=auto
==============================================================================
---
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/build.gradle
(added)
+++
tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/build.gradle
Mon Oct 17 17:58:30 2011
@@ -0,0 +1,74 @@
+description = "${artifactId} application"
+
+apply plugin: "war"
+apply plugin: "java"
+apply plugin: "jetty"
+
+sourceCompatibility = "1.5"
+targetCompatibility = "1.5"
+
+group = "${groupId}"
+version = "${version}"
+
+repositories {
+ mavenCentral()
+
+ // All things JBoss/Javassist/Hibernate
+ mavenRepo urls: "http://repository.jboss.org/nexus/content/groups/public/"
+
+ // For stable versions of the tapx libraries
+ mavenRepo urls: "http://howardlewisship.com/repository/"
+
+ // For non-stable versions of the tapx libraries
+ mavenRepo urls: "http://howardlewisship.com/snapshot-repository/"
+
+ // For access to Apache Staging (Preview) packages
+ mavenRepo urls: "https://repository.apache.org/content/groups/staging"
+}
+
+// This simulates Maven's "provided" scope, until it is officially supported
by Gradle
+// See http://jira.codehaus.org/browse/GRADLE-784
+
+configurations {
+ provided
+}
+
+sourceSets {
+ main {
+ compileClasspath += configurations.provided
+ }
+ test {
+ compileClasspath += configurations.provided
+ runtimeClasspath += configurations.provided
+ }
+}
+
+dependencies {
+
+ compile "org.apache.tapestry:tapestry-core:@tapestryReleaseVersion@"
+
+ // This adds automatic compression of JavaScript and CSS in production mode:
+ compile "org.apache.tapestry:tapestry-yuicompressor:@tapestryReleaseVersion@"
+
+ // Uncomment this to add support for file uploads:
+ // compile "org.apache.tapestry:tapestry-upload:@tapestryReleaseVersion@"
+
+ provided "javax.servlet:servlet-api:@servletApiReleaseVersion@"
+}
+
+test {
+ useTestNG()
+
+ options.suites("src/test/conf/testng.xml")
+
+ systemProperties["tapestry.service-reloading-enabled"] = "false"
+ systemProperties["tapestry.execution-mode"] = "development"
+
+ maxHeapSize = "600M"
+
+ jvmArgs("-XX:MaxPermSize=256M")
+
+ enableAssertions = true
+}
+
+// TODO: Configure execution mode for jettyRun task