forked from erdi/gradle-gae-geb-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
executable file
·121 lines (105 loc) · 2.92 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
apply plugin: 'idea'
apply plugin: 'groovy'
apply plugin: 'nexus'
apply plugin: 'codenarc'
apply plugin: 'java-gradle-plugin'
def compatibilityVersion = 1.7
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
group = 'org.gradle.api.plugins'
version = '0.5'
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7'
}
}
repositories {
mavenCentral()
}
dependencies {
compile localGroovy(),
gradleApi(),
'com.google.appengine:gradle-appengine-plugin:1.9.34'
compile('org.gebish:geb-core:0.13.1') {
exclude group: 'org.codehaus.groovy'
}
testCompile gradleTestKit()
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
}
codenarc 'org.codenarc:CodeNarc:0.20'
}
idea {
workspace {
iws.withXml { provider ->
def node = provider.asNode()
def runManager = node.component.find { it.'@name' == 'RunManager' }
def defaultJUnitConf = runManager.configuration.find { it.'@default' == 'true' && it.'@type' == 'JUnit' }
defaultJUnitConf.method.replaceNode {
method {
option(name: "Gradle.BeforeRunTask", enabled: true, tasks: "pluginUnderTestMetadata", externalProjectPath: '$PROJECT_DIR$/build.gradle')
option(name: "Make", enabled: true)
}
}
}
}
project {
jdkName = '1.7'
vcs = 'Git'
ipr.withXml { provider ->
def node = provider.asNode()
node.append(new XmlParser().parse(file("gradle/idea/gradle.xml")))
}
}
}
jar {
manifest {
attributes 'Implementation-Title': 'Gradle GAE Geb integration plugin',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Built-Gradle': gradle.gradleVersion
}
}
modifyPom {
project {
name 'Gradle GAE Geb integration plugin'
description 'Simple Gradle plugin that provides integration between Gradle GAE plugin and Geb browser automation framework.'
url 'https://github.com/erdi/gradle-gae-geb-plugin'
inceptionYear '2012'
scm {
url 'https://github.com/erdi/gradle-gae-geb-plugin'
connection 'scm:git://github.com/erdi/gradle-gae-geb-plugin.git'
developerConnection 'scm:git@github.com:erdi/gradle-gae-geb-plugin.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'erdi'
name 'Marcin Erdmann'
email 'marcin.erdmann@proxerd.pl'
}
developer {
id 'musketyr'
name 'Vladimir Orany'
email 'vladmir@orany.cz'
}
}
}
dependencies.findAll { it.groupId == 'org.gradle.api.plugins' && it.artifactId == 'gradle-appengine-plugin' }*.scope = 'provided'
dependencies.removeAll(dependencies.findAll { it.scope == 'test' })
}
codenarc {
configFile = file('config/codenarc/rulesets.groovy')
}