@@ -74,6 +74,12 @@ signing {
74
74
sign configurations. archives
75
75
}
76
76
77
+ install {
78
+ repositories. mavenInstaller {
79
+ configurePom(pom)
80
+ }
81
+ }
82
+
77
83
uploadArchives {
78
84
repositories. mavenDeployer {
79
85
beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
@@ -85,37 +91,41 @@ uploadArchives {
85
91
authentication(userName : ossrhUsername, password : ossrhPassword)
86
92
}
87
93
88
- pom. whenConfigured { pom ->
89
- pom. dependencies = pom. dependencies. findAll { dep -> dep. scope != ' test' }
90
- }
91
-
92
- pom. project {
93
- name ' Spring Cloud SSO Connector'
94
- description ' Spring Cloud Connector Extension for Single Sign-On Service on Pivotal Cloud Foundry'
95
- url ' https://github.com/pivotal-cf/spring-cloud-sso-connector/'
96
- inceptionYear ' 2015'
97
- licenses {
98
- license {
99
- name ' The Apache License, Version 2.0'
100
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
101
- distribution ' jar'
102
- }
103
- }
104
- scm {
105
- connection
' scm:git:[email protected] :pivotal-cf/spring-cloud-sso-connector.git'
106
- developerConnection
' scm:git:[email protected] :pivotal-cf/spring-cloud-sso-connector.git'
107
- url ' https://github.com/pivotal-cf/spring-cloud-sso-connector/'
108
- }
109
- developers {
110
- developer {
111
- organization ' Pivotal Software Inc'
112
- organizationUrl ' https://pivotal.io'
113
- }
114
- }
115
- }
94
+ configurePom(pom)
116
95
}
117
96
}
118
97
119
98
nexusStaging {
120
99
packageGroup = ' io.pivotal'
121
100
}
101
+
102
+ private void configurePom (pom ) {
103
+ pom. whenConfigured { p ->
104
+ p. dependencies = p. dependencies. findAll { dep -> dep. scope != ' test' }
105
+ }
106
+
107
+ pom. project {
108
+ name ' Spring Cloud SSO Connector'
109
+ description ' Spring Cloud Connector Extension for Single Sign-On Service on Pivotal Cloud Foundry'
110
+ url ' https://github.com/pivotal-cf/spring-cloud-sso-connector/'
111
+ inceptionYear ' 2015'
112
+ licenses {
113
+ license {
114
+ name ' The Apache License, Version 2.0'
115
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
116
+ distribution ' jar'
117
+ }
118
+ }
119
+ scm {
120
+ connection
' scm:git:[email protected] :pivotal-cf/spring-cloud-sso-connector.git'
121
+ developerConnection
' scm:git:[email protected] :pivotal-cf/spring-cloud-sso-connector.git'
122
+ url ' https://github.com/pivotal-cf/spring-cloud-sso-connector/'
123
+ }
124
+ developers {
125
+ developer {
126
+ organization ' Pivotal Software Inc'
127
+ organizationUrl ' https://pivotal.io'
128
+ }
129
+ }
130
+ }
131
+ }
0 commit comments