Skip to content

Commit

Permalink
Fix scm attributes in maven pom.xml
Browse files Browse the repository at this point in the history
Closes gh-1897
  • Loading branch information
eleftherias committed Oct 29, 2021
1 parent e5bc746 commit 2110ef0
Showing 1 changed file with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2016-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

package org.springframework.gradle.maven;

import org.gradle.api.Action;
Expand Down Expand Up @@ -30,7 +46,7 @@ public void execute(MavenPublishPlugin mavenPublish) {
}

private void customizePom(MavenPom pom, Project project) {
pom.getUrl().set("https://spring.io/projects/spring-security");
pom.getUrl().set("https://spring.io/projects/spring-session");
pom.getName().set(project.provider(project::getName));
pom.getDescription().set(project.provider(project::getDescription));
pom.organization(this::customizeOrganization);
Expand Down Expand Up @@ -62,14 +78,14 @@ private void customizeDevelopers(MavenPomDeveloperSpec developers) {
}

private void customizeScm(MavenPomScm scm) {
scm.getConnection().set("scm:git:git://github.com/spring-projects/spring-security.git");
scm.getDeveloperConnection().set("scm:git:ssh://[email protected]/spring-projects/spring-security.git");
scm.getUrl().set("https://github.com/spring-projects/spring-security");
scm.getConnection().set("scm:git:git://github.com/spring-projects/spring-session.git");
scm.getDeveloperConnection().set("scm:git:ssh://[email protected]/spring-projects/spring-session.git");
scm.getUrl().set("https://github.com/spring-projects/spring-session");
}

private void customizeIssueManagement(MavenPomIssueManagement issueManagement) {
issueManagement.getSystem().set("GitHub");
issueManagement.getUrl().set("https://github.com/spring-projects/spring-security/issues");
issueManagement.getUrl().set("https://github.com/spring-projects/spring-session/issues");
}

private void customizeJavaPlugin(Project project) {
Expand Down

0 comments on commit 2110ef0

Please sign in to comment.