Skip to content

Commit 9531430

Browse files
Eli PleanerAbhi Hiremagalur
authored andcommitted
Re-introduce ability to publish jar to local maven repo
This is useful for doing a dry-run bump in the sample apps for manual testing Signed-off-by: Abhi Hiremagalur <[email protected]>
1 parent 1c1ff83 commit 9531430

File tree

1 file changed

+38
-28
lines changed

1 file changed

+38
-28
lines changed

build.gradle

Lines changed: 38 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ signing {
7474
sign configurations.archives
7575
}
7676

77+
install {
78+
repositories.mavenInstaller {
79+
configurePom(pom)
80+
}
81+
}
82+
7783
uploadArchives {
7884
repositories.mavenDeployer {
7985
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
@@ -85,37 +91,41 @@ uploadArchives {
8591
authentication(userName: ossrhUsername, password: ossrhPassword)
8692
}
8793

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)
11695
}
11796
}
11897

11998
nexusStaging {
12099
packageGroup = 'io.pivotal'
121100
}
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

Comments
 (0)