You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2011/10/17 19:58:30 UTC

svn commit: r1185308 - /tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/build.gradle

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



Re: svn commit: r1185308 - /tapestry/tapestry5/trunk/quickstart/prototypes/archetype-resources/build.gradle

Posted by Massimo Lusetti <ml...@gmail.com>.
On Mon, Oct 17, 2011 at 7:58 PM,  <hl...@apache.org> wrote:

> 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

Cool...

-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org