Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
105 lines (89 sloc) 3.38 KB
apply plugin: 'war'
apply plugin: 'gaelyk'
apply plugin: 'appengine-geb'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'groovy'
def compatibilityVersion = 1.7
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-gaelyk-plugin:0.6'
classpath 'org.gradle.api.plugins:gradle-appengine-geb-plugin:0.4'
}
}
repositories {
maven { url 'http://dl.bintray.com/gaelyk/groovy-patches' }
mavenCentral()
mavenLocal()
}
dependencies {
def gaeVersion = '1.9.48'
def groovyVersion = '2.4.5'
// compile "org.codehaus.groovy:groovy-all:${groovyVersion}", {force = true}
compile "com.google.appengine:appengine-api-1.0-sdk:$gaeVersion",
"com.google.appengine:appengine-api-labs:$gaeVersion"
compile 'org.gaelyk:gaelyk:2.2.0'
compile 'com.google.http-client:google-http-client-appengine:1.22.0'
compile 'opensymphony:sitemesh:2.4.2'
testCompile 'org.gaelyk:gaelyk-spock:0.4'
testCompile "com.google.appengine:appengine-api-stubs:$gaeVersion",
"com.google.appengine:appengine-testing:$gaeVersion"
functionalTestCompile 'org.seleniumhq.selenium:selenium-firefox-driver:2.40.0'
functionalTestCompile 'org.gebish:geb-spock:0.9.2'
appengineSdk "com.google.appengine:appengine-java-sdk:$gaeVersion"
}
idea {
project {
jdkName = compatibilityVersion
ipr.withXml { provider ->
def node = provider.asNode()
// Set Gradle home
def gradleSettings = node.appendNode('component', [name: 'GradleSettings'])
gradleSettings.appendNode('option', [name: 'SDK_HOME', value: gradle.gradleHomeDir])
}
}
module {
sourceDirs += file('src/main/dsl')
}
}
eclipse {
project {
name 'gaelyk-project'
file {
whenMerged { project ->
project.natures << 'com.google.appengine.eclipse.core.gaeNature'
project.natures << 'com.google.gdt.eclipse.core.webAppNature'
project.buildCommands << [name: 'com.google.appengine.eclipse.core.enhancerbuilder']
project.buildCommands << [name: 'com.google.appengine.eclipse.core.projectValidator']
project.buildCommands << [name: 'com.google.gdt.eclipse.core.webAppProjectValidator']
}
}
}
classpath {
file {
withXml { xml ->
xml.asNode().classpathentry.find { it.@kind == 'output' && it.@path == 'bin' }.@path = 'src/main/webapp/WEB-INF/classes'
xml.asNode().appendNode('classpathentry', [kind: 'con', path: 'com.google.appengine.eclipse.core.GAE_CONTAINER'])
.appendNode('attributes')
.appendNode('attribute', [name: 'org.eclipse.jst.component.nondependency', value: '/src/main/webapp/WEB-INF/lib'])
xml.asNode().appendNode('classpathentry', [exported: 'true', kind: 'con', path: 'GROOVY_SUPPORT'])
.appendNode('attributes')
.appendNode('attribute', [name: 'org.eclipse.jst.component.nondependency', value: '/src/main/webapp/WEB-INF/lib'])
}
}
}
}
appengine {
appcfg {
oauth2 = true
app {
id = 'lgtmin'
}
}
}