-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
124 lines (105 loc) · 4.44 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
apply plugin: 'gaelyk'
apply plugin: 'gae-geb'
apply plugin: 'eclipse'
apply plugin: 'idea'
def compatibilityVersion = 1.7
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-plugin:0.8', {
exclude module: "gradle-fatjar-plugin"
}
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
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.8.6'
def groovyVersion = '2.1.3'
def gebVersion = "0.9.0"
def seleniumVersion = "2.25.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'
compile "org.codehaus.groovy.modules.http-builder:http-builder:0.6"
/**
* 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'
/**
* Gaelyk console serves as playground or key-hole surgery tool for
* your application
* @see https://github.com/gaelyk/gaelyk-console
*/
// compile 'org.gaelyk:gaelyk-console:2.0'
testCompile 'org.gaelyk:gaelyk-spock:0.4'
testCompile "com.google.appengine:appengine-api-stubs:$gaeVersion",
"com.google.appengine:appengine-testing:$gaeVersion"
testCompile "org.codehaus.groovy.modules.http-builder:http-builder:0.6"
functionalTestCompile "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion",
"org.gebish:geb-spock:$gebVersion",
'org.spockframework:spock-core:0.7-groovy-2.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'])
}
}
}
}