代码拉取完成,页面将自动刷新
apply plugin: "propdeps-maven"
install {
repositories.mavenInstaller {
customizePom(pom, project)
}
}
def customizePom(pom, gradleProject) {
pom.whenConfigured { generatedPom ->
// eliminate test-scoped dependencies (no need in maven central poms)
generatedPom.dependencies.removeAll { dep ->
dep.scope == 'test'
}
// sort to make pom dependencies order consistent to ease comparison of older poms
generatedPom.dependencies = generatedPom.dependencies.sort { dep ->
"$dep.scope:$dep.groupId:$dep.artifactId"
}
// add all items necessary for maven central publication
generatedPom.project {
name = gradleProject.description
description = gradleProject.description
url = linkHomepage
organization {
name = 'Spring'
url = 'https://spring.io'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
scm {
url = linkScmUrl
connection = 'scm:git:' + linkScmConnection
developerConnection = 'scm:git:' + linkScmDevConnection
}
developers {
developer {
id = 'dsyer'
name = 'Dave Syer'
}
developer {
id = 'nebhale'
name = 'Ben Hale'
}
developer {
id = 'lward'
name = 'Lucas Ward'
}
developer {
id = 'robokaso'
name = 'Robert Kasanicky'
}
developer {
id = 'trisberg'
name = 'Thomas Risberg'
}
developer {
id = 'dhgarrette'
name = 'Dan Garrette'
}
developer {
id = 'mminella'
name = 'Michael Minella'
roles = ["project lead"]
}
developer {
id = 'chrisjs'
name = 'Chris Schaefer'
}
developer {
id = 'benas'
name = 'Mahmoud Ben Hassine'
}
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。