/
build.gradle
105 lines (91 loc) · 3.81 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
apply plugin: 'gaelyk'
apply plugin: 'gae-geb'
apply plugin: 'eclipse'
apply plugin: 'idea'
def compatibilityVersion = 1.6
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-gaelyk-plugin:0.4.1'
classpath 'org.gradle.api.plugins:gradle-gae-geb-plugin:0.3'
}
}
repositories {
mavenCentral()
mavenLocal()
}
/*
configurations {
precompile
}
gaelykPrecompileGroovlet.runtimeClasspath += project.configurations.precompile
gaelykPrecompileTemplate.runtimeClasspath += project.configurations.precompile
*/
dependencies {
def gaeVersion = '1.7.4'
def groovyVersion = '2.1.0'
groovy "org.codehaus.groovy:groovy-all:${groovyVersion}"
// precompile "org.codehaus.groovy:groovy-ant:${groovyVersion}"
// precompile "org.ow2.asm:asm:4.0"
// precompile "commons-cli:commons-cli:1.2"
compile "org.codehaus.groovy:groovy-json:${groovyVersion}"
compile "org.codehaus.groovy:groovy-servlet:${groovyVersion}"
compile "com.google.appengine:appengine-api-1.0-sdk:$gaeVersion",
"com.google.appengine:appengine-api-labs:$gaeVersion"
compile 'org.gaelyk:gaelyk:2.0-SNAPSHOT'
compile 'org.gaelyk:gaelyk-console:2.0-SNAPSHOT'
/**
* To add binary plugin just declare it as a dependency. For example,
* uncomment following to add GPars support to your Gaelyk project.
* @see https://github.com/musketyr/gpars-appengine
*/
// compile 'org.codehaus.gpars:gpars-appengine:0.1'
testCompile 'org.gaelyk:gaelyk-spock:0.3.0.1'
testCompile "com.google.appengine:appengine-api-stubs:$gaeVersion",
"com.google.appengine:appengine-testing:$gaeVersion"
functionalTestCompile 'org.codehaus.geb:geb-spock:0.7.0',
'org.seleniumhq.selenium:selenium-firefox-driver:2.22.0'
gaeSdk "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])
}
}
}
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'])
}
}
}
}