Skip to content

Commit

Permalink
Apply gradle gaelyk plugin to website project
Browse files Browse the repository at this point in the history
  • Loading branch information
erdi committed Dec 10, 2012
1 parent 66b44bb commit e797ddc
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include 'core'
include 'core', 'website'
22 changes: 22 additions & 0 deletions website/build.gradle
Original file line number Diff line number Diff line change
@@ -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'
Binary file not shown.
Binary file removed website/war/WEB-INF/lib/appengine-api-labs-1.7.3.jar
Binary file not shown.
Binary file removed website/war/WEB-INF/lib/gaelyk-2.0-SNAPSHOT.jar
Binary file not shown.
Binary file removed website/war/WEB-INF/lib/groovy-all-2.0.5.jar
Binary file not shown.
Binary file not shown.
Binary file removed website/war/WEB-INF/lib/sitemesh-2.4.2.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions website/war/WEB-INF/routes.groovy
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit e797ddc

Please sign in to comment.