-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (47 loc) · 1.31 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
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply from: 'gradle-api-source.gradle'
apply from: 'publish-maven.gradle'
repositories {
mavenCentral()
}
group = 'com.github.jolivares'
description = 'Dependency Management Plugin'
ext {
spockVersion = GroovySystem.version.startsWith('1.') ? '0.7-groovy-1.8' : '0.7-groovy-2.0'
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile("org.spockframework:spock-core:$spockVersion") {
exclude group: 'org.codehaus.groovy'
}
}
tasks.findByPath('artifactoryPublish')?.configure {
properties = [
'gradle-plugin' : "io.spring.dependency-management:${project.group}:${project.name}",
'bintray.package': "${project.group}:dependency-management",
'bintray.version': "${project.version}"
]
}
groovydoc {
docTitle = "$project.description $project.version API"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier = "javadoc"
from groovydoc
}
artifacts {
archives sourcesJar
archives javadocJar
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
distributionUrl = 'http://services.gradle.org/distributions/gradle-1.12-all.zip'
}