Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Apply gradle gaelyk plugin to website project

  • Loading branch information...
commit e797ddc64ce682ed18a8b853eedcfdff25d521c1 1 parent 66b44bb
Marcin Erdmann erdi authored
4 .gitignore
View
@@ -9,4 +9,6 @@ out
.classpath
.project
.settings
-website/war/api
+website/war/api
+website/war/WEB-INF/classes
+website/war/WEB-INF/lib
2  settings.gradle
View
@@ -1 +1 @@
-include 'core'
+include 'core', 'website'
22 website/build.gradle
View
@@ -0,0 +1,22 @@
+apply from: '../common.gradle'
+apply plugin: 'gaelyk'
+
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath "org.gradle.api.plugins:gradle-gaelyk-plugin:0.4.1"
+ }
+}
+
+dependencies {
+ compile project(':core')
+ groovy "org.codehaus.groovy:groovy-all:$gaelykGroovyVersion"
+ gaeSdk "com.google.appengine:appengine-java-sdk:$appEngineVersion"
+ compile 'com.ocpsoft:ocpsoft-pretty-time:1.0.2',
+ 'opensymphony:sitemesh:2.4.2'
+}
+
+webAppDirName = 'war'
BIN  website/war/WEB-INF/lib/appengine-api-1.0-sdk-1.7.3.jar
View
Binary file not shown
BIN  website/war/WEB-INF/lib/appengine-api-labs-1.7.3.jar
View
Binary file not shown
BIN  website/war/WEB-INF/lib/gaelyk-2.0-SNAPSHOT.jar
View
Binary file not shown
BIN  website/war/WEB-INF/lib/groovy-all-2.0.5.jar
View
Binary file not shown
BIN  website/war/WEB-INF/lib/ocpsoft-pretty-time-1-1.0.2.jar
View
Binary file not shown
BIN  website/war/WEB-INF/lib/sitemesh-2.4.2.jar
View
Binary file not shown
4 website/war/WEB-INF/routes.groovy
View
@@ -1,5 +1,5 @@
-def stableDuration = 1.hour
-def hotContentDuration = 30.minutes
+def stableDuration = localMode ? 0 : 1.hour
+def hotContentDuration = localMode ? 0 : 30.minutes
get "/", forward: "/WEB-INF/pages/index.gtpl", cache: stableDuration
Please sign in to comment.
Something went wrong with that request. Please try again.