-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbuild.gradle
83 lines (69 loc) · 2.09 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
buildscript{
apply from: 'buildscript.gradle'
}
apply from: 'publishing.gradle'
apply plugin: 'groovy'
apply from: 'cobertura.gradle'
apply from: 'integTest.gradle'
group = 'com.github.jacobono'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.github.jacobono:gradle-xsd-wsdl-slurping:1.1.2'
compile 'com.google.inject:guice:3.0'
testCompile "org.spockframework:spock-core:0.7-groovy-1.8"
testCompile 'cglib:cglib-nodep:2.2'
testCompile 'org.objenesis:objenesis:1.2'
}
test {
testLogging {
events "passed", "skipped", "failed"
}
}
groovydoc {
docTitle = "Gradle XSD Plugin"
link("http://groovy.codehaus.org/gapi/", "groovy.", "org.codehaus.groovy.")
link("http://doc.oracle.com/javase/7/docs/api/", "java.")
link("http://google-guice.googlecode.com/svn/trunk/javadoc/", "com.google.")
link("http://www.gradle.org/docs/current/javadoc/", "org.gradle.", "org.gradle.api.")
}
task groovyDocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'groovydoc'
from groovydoc.destinationDir
}
task groovySourceJar(type: Jar, dependsOn: 'jar') {
classifier = 'sources'
from sourceSets.main.allSource
}
task unversionedJar (type: Jar, dependsOn: 'jar') {
version = null
from sourceSets.main.output
}
task installPlugin (type: Copy, dependsOn: 'unversionedJar') {
def gradleInstallDir = gradle.gradleHomeDir
group = 'installation'
description = 'Installs the plugin jar in your gradle distribution.'
from "${buildDir}/libs/${unversionedJar.archiveName}"
into "/${gradleInstallDir}/lib/plugins"
doLast {
println "Installed in: ${gradleInstallDir}/lib/plugins as: ${unversionedJar.archiveName}"
}
}
task uninstallPlugin (type: Delete) {
def gradleInstallDir = gradle.gradleHomeDir
group = 'installation'
description = 'Removes the plugin from your gradle distribution.'
delete("/${gradleInstallDir}/lib/plugins/${unversionedJar.archiveName}")
}
artifacts {
archives jar, groovyDocJar
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}