This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # Fixed URLs ## Fixed Success These URLs were fixed successfully. * http://docs.oracle.com/javaee/6/api/ migrated to: https://docs.oracle.com/javaee/6/api/ ([https](https://docs.oracle.com/javaee/6/api/) result 200). * http://docs.oracle.com/javase/7/docs/api/ migrated to: https://docs.oracle.com/javase/7/docs/api/ ([https](https://docs.oracle.com/javase/7/docs/api/) result 200). * http://docs.spring.io/spring-amqp/docs/current/api/ migrated to: https://docs.spring.io/spring-amqp/docs/current/api/ ([https](https://docs.spring.io/spring-amqp/docs/current/api/) result 200). * http://docs.spring.io/spring-data-gemfire/docs/current/api/ migrated to: https://docs.spring.io/spring-data-gemfire/docs/current/api/ ([https](https://docs.spring.io/spring-data-gemfire/docs/current/api/) result 200). * http://docs.spring.io/spring-data/data-mongo/docs/current/api/ migrated to: https://docs.spring.io/spring-data/data-mongo/docs/current/api/ ([https](https://docs.spring.io/spring-data/data-mongo/docs/current/api/) result 200). * http://docs.spring.io/spring-data/data-redis/docs/current/api/ migrated to: https://docs.spring.io/spring-data/data-redis/docs/current/api/ ([https](https://docs.spring.io/spring-data/data-redis/docs/current/api/) result 200). * http://docs.spring.io/spring-ws/sites/2.0/apidocs/ migrated to: https://docs.spring.io/spring-ws/sites/2.0/apidocs/ ([https](https://docs.spring.io/spring-ws/sites/2.0/apidocs/) result 200). * http://docs.spring.io/spring/docs/current/javadoc-api/ migrated to: https://docs.spring.io/spring/docs/current/javadoc-api/ ([https](https://docs.spring.io/spring/docs/current/javadoc-api/) result 200). * http://spring.io migrated to: https://spring.io ([https](https://spring.io) result 200). * http://www.apache.org/licenses/LICENSE-2.0.txt migrated to: https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
86 lines
1.9 KiB
Groovy
86 lines
1.9 KiB
Groovy
apply plugin: 'maven'
|
|
|
|
ext.optionalDeps = []
|
|
ext.providedDeps = []
|
|
|
|
ext.optional = { optionalDeps << it }
|
|
ext.provided = { providedDeps << it }
|
|
|
|
install {
|
|
repositories.mavenInstaller {
|
|
customizePom(pom, project)
|
|
}
|
|
}
|
|
|
|
def customizePom(pom, gradleProject) {
|
|
pom.whenConfigured { generatedPom ->
|
|
// respect 'optional' and 'provided' dependencies
|
|
gradleProject.optionalDeps.each { dep ->
|
|
generatedPom.dependencies.find { it.artifactId == dep.name }?.optional = true
|
|
}
|
|
gradleProject.providedDeps.each { dep ->
|
|
generatedPom.dependencies.find { it.artifactId == dep.name }?.scope = 'provided'
|
|
}
|
|
|
|
// eliminate test-scoped dependencies (no need in maven central poms)
|
|
generatedPom.dependencies.removeAll { dep ->
|
|
dep.scope == 'test'
|
|
}
|
|
|
|
// add all items necessary for maven central publication
|
|
generatedPom.project {
|
|
name = gradleProject.description
|
|
description = gradleProject.description
|
|
url = linkHomepage
|
|
organization {
|
|
name = 'SpringIO'
|
|
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
|
|
}
|
|
|
|
issueManagement {
|
|
system = "Jira"
|
|
url = linkIssue
|
|
}
|
|
|
|
developers {
|
|
developer {
|
|
id = 'garyrussell'
|
|
name = 'Gary Russell'
|
|
email = 'grussell@pivotal.io'
|
|
roles = ["project lead"]
|
|
}
|
|
developer {
|
|
id = 'markfisher'
|
|
name = 'Mark Fisher'
|
|
email = 'mfisher@pivotal.io'
|
|
roles = ["project founder and lead emeritus"]
|
|
}
|
|
developer {
|
|
id = 'ghillert'
|
|
name = 'Gunnar Hillert'
|
|
email = 'ghillert@pivotal.io'
|
|
}
|
|
developer {
|
|
id = 'abilan'
|
|
name = 'Artem Bilan'
|
|
email = 'abilan@pivotal.io'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|