Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 62 lines (54 sloc) 1.659 kB
1f282a1 Polishing SMB adapter
Gunnar Hillert authored
1 apply plugin: 'maven'
2
3 ext.optionalDeps = []
4 ext.providedDeps = []
5
6 ext.optional = { optionalDeps << it }
7 ext.provided = { providedDeps << it }
8
9 install {
10 repositories.mavenInstaller {
11 customizePom(pom, project)
12 }
13 }
14
15 def customizePom(pom, gradleProject) {
16 pom.whenConfigured { generatedPom ->
17 // respect 'optional' and 'provided' dependencies
18 gradleProject.optionalDeps.each { dep ->
19 generatedPom.dependencies.find { it.artifactId == dep.name }?.optional = true
20 }
21 gradleProject.providedDeps.each { dep ->
22 generatedPom.dependencies.find { it.artifactId == dep.name }?.scope = 'provided'
23 }
24
25 // eliminate test-scoped dependencies (no need in maven central poms)
26 generatedPom.dependencies.removeAll { dep ->
27 dep.scope == 'test'
28 }
29
30 // add all items necessary for maven central publication
31 generatedPom.project {
32 name = gradleProject.description
33 description = gradleProject.description
ca708e0 INTEXT-27 + INTEXT-46 Upgrade to Gradle 1.4
Gunnar Hillert authored
34 url = 'https://github.com/SpringSource/spring-integration-extensions'
1f282a1 Polishing SMB adapter
Gunnar Hillert authored
35 organization {
36 name = 'SpringSource'
37 url = 'http://springsource.org'
38 }
39 licenses {
40 license {
41 name 'The Apache Software License, Version 2.0'
42 url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
43 distribution 'repo'
44 }
45 }
46 scm {
ca708e0 INTEXT-27 + INTEXT-46 Upgrade to Gradle 1.4
Gunnar Hillert authored
47 url = 'https://github.com/SpringSource/spring-integration-extensions'
48 connection = 'scm:git:git://github.com/SpringSource/spring-integration-extensions'
49 developerConnection = 'scm:git:git://github.com/SpringSource/spring-integration-extensions'
1f282a1 Polishing SMB adapter
Gunnar Hillert authored
50 }
51
52 developers {
53 developer {
54 id = 'not specified'
55 name = 'Markus Spann'
56 email = 'not specified'
57 }
58 }
59 }
60 }
61 }
Something went wrong with that request. Please try again.