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). # HTTP URLs that Could Not Be Fixed These URLs were unable to be fixed. Please review them to see if they can be manually resolved. * http://junit.sourceforge.net/javadoc/ (200) migrated to: http://junit.sourceforge.net/javadoc/ ([https](https://junit.sourceforge.net/javadoc/) result AnnotatedConnectException). * http://www.261consulting.com (200) migrated to: http://www.261consulting.com ([https](https://www.261consulting.com) result ConnectTimeoutException). # Fixed URLs ## Fixed But Review Recommended These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended. * http://forums.gradle.org/gradle/topics/after_upgrade_gradle_to_2_0_version_the_maven_pom_not_support_build_property (301) migrated to: https://discuss.gradle.org/gradle/topics/after_upgrade_gradle_to_2_0_version_the_maven_pom_not_support_build_property ([https](https://forums.gradle.org/gradle/topics/after_upgrade_gradle_to_2_0_version_the_maven_pom_not_support_build_property) result 404). * http://download.java.net/maven/2/ (301) migrated to: https://download.java.net/maven/2/ ([https](https://download.java.net/maven/2/) result 404). ## Fixed Success These URLs were fixed successfully. * http://commons.apache.org/proper/commons-dbcp/apidocs/ migrated to: https://commons.apache.org/proper/commons-dbcp/apidocs/ ([https](https://commons.apache.org/proper/commons-dbcp/apidocs/) result 200). * http://commons.apache.org/proper/commons-logging/apidocs/ migrated to: https://commons.apache.org/proper/commons-logging/apidocs/ ([https](https://commons.apache.org/proper/commons-logging/apidocs/) result 200). * http://commons.apache.org/proper/commons-pool/apidocs/ migrated to: https://commons.apache.org/proper/commons-pool/apidocs/ ([https](https://commons.apache.org/proper/commons-pool/apidocs/) 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/docs/3.2.x/javadoc-api/ migrated to: https://docs.spring.io/spring/docs/3.2.x/javadoc-api/ ([https](https://docs.spring.io/spring/docs/3.2.x/javadoc-api/) result 200). * http://logging.apache.org/log4j/1.2/apidocs/ migrated to: https://logging.apache.org/log4j/1.2/apidocs/ ([https](https://logging.apache.org/log4j/1.2/apidocs/) result 200). * http://springsource.org/ (301) migrated to: https://spring.io ([https](https://springsource.org/) 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). * http://www.jayway.com migrated to: https://www.jayway.com ([https](https://www.jayway.com) result 200). * http://static.springframework.org/spring-ldap/docs (301) migrated to: https://docs.spring.io/spring-ldap/docs ([https](https://static.springframework.org/spring-ldap/docs) result 301). * http://repo.springsource.org/libs-snapshot migrated to: https://repo.springsource.org/libs-snapshot ([https](https://repo.springsource.org/libs-snapshot) result 301). * http://www.springframework.org/ldap migrated to: https://www.springframework.org/ldap ([https](https://www.springframework.org/ldap) result 301). # Ignored These URLs were intentionally ignored. * http://maven.apache.org/POM/4.0.0 * http://maven.apache.org/xsd/maven-4.0.0.xsd * http://www.w3.org/2001/XMLSchema-instance
220 lines
6.7 KiB
Groovy
220 lines
6.7 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url 'https://repo.spring.io/plugins-release' }
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.7")
|
|
classpath('org.asciidoctor:asciidoctor-gradle-plugin:1.5.1')
|
|
classpath("io.spring.gradle:spring-io-plugin:0.0.5.RELEASE")
|
|
classpath("io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE")
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "org.sonarqube" version "2.1-rc1"
|
|
}
|
|
|
|
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
|
|
|
|
ext.GRADLE_SCRIPT_DIR = "${rootProject.projectDir}/gradle"
|
|
ext.JAVA_MODULE_SCRIPT = "${GRADLE_SCRIPT_DIR}/java-module.gradle"
|
|
ext.MAVEN_DEPLOYMENT_SCRIPT = "${GRADLE_SCRIPT_DIR}/maven-deployment.gradle"
|
|
ext.JAVA_SCRIPT = "${GRADLE_SCRIPT_DIR}/java.gradle"
|
|
ext.RELEASE_CHECKS_SCRIPT = "${GRADLE_SCRIPT_DIR}/release-checks.gradle"
|
|
ext.SAMPLE_WAR_GRADLE = "${GRADLE_SCRIPT_DIR}/sample-war.gradle"
|
|
ext.SPRING_SNAPSHOT_TEST_SCRIPT = "${GRADLE_SCRIPT_DIR}/spring-snapshot-test.gradle"
|
|
|
|
ext.coreModules = subprojects.findAll { p-> (!p.name.equals('spring-build-src') && !p.name.contains("test") && !p.name.contains("sample") && !p.name.contains("sandbox")) || p.name.contains("spring-ldap-test") }
|
|
|
|
allprojects {
|
|
apply plugin: 'idea'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'java'
|
|
|
|
group = "org.springframework.ldap"
|
|
|
|
ext.releaseBuild = version.endsWith('RELEASE')
|
|
ext.snapshotBuild = version.endsWith('SNAPSHOT')
|
|
|
|
ext.javadocLinks = [
|
|
"https://docs.oracle.com/javase/7/docs/api/",
|
|
"https://docs.spring.io/spring/docs/3.2.x/javadoc-api/",
|
|
"https://logging.apache.org/log4j/1.2/apidocs/",
|
|
"https://commons.apache.org/proper/commons-logging/apidocs/",
|
|
"https://commons.apache.org/proper/commons-dbcp/apidocs/",
|
|
"https://commons.apache.org/proper/commons-pool/apidocs/",
|
|
"http://junit.sourceforge.net/javadoc/",
|
|
] as String[]
|
|
}
|
|
|
|
|
|
configure(subprojects) {
|
|
apply plugin: 'propdeps'
|
|
apply plugin: 'propdeps-maven'
|
|
apply plugin: 'propdeps-idea'
|
|
apply plugin: 'propdeps-eclipse'
|
|
apply plugin: 'groovy'
|
|
apply plugin: "merge"
|
|
|
|
}
|
|
|
|
configure(coreModules) {
|
|
apply from: JAVA_MODULE_SCRIPT
|
|
}
|
|
|
|
configure(subprojects - coreModules) {
|
|
sonarqube {
|
|
skipProject = true
|
|
}
|
|
|
|
tasks.findByPath("artifactoryPublish")?.enabled = false
|
|
}
|
|
|
|
description = "Spring LDAP"
|
|
|
|
configurations.archives.artifacts.clear()
|
|
|
|
sonarqube {
|
|
properties {
|
|
property "sonar.exclusions", "file:**/generated-src/**"
|
|
property "sonar.java.coveragePlugin", "jacoco"
|
|
property "sonar.jacoco.reportPath", "${buildDir.name}/jacoco.exec"
|
|
property "sonar.links.homepage", 'https://github.com/SpringSource/spring-ldap'
|
|
property "sonar.links.ci", 'https://build.springsource.org/browse/LDAP-B20X'
|
|
property "sonar.links.issue", 'https://jira.springsource.org/browse/LDAP'
|
|
property "sonar.links.scm", 'https://github.com/SpringSource/spring-ldap'
|
|
property "sonar.links.scm_dev", 'https://github.com/SpringSource/spring-ldap.git'
|
|
}
|
|
}
|
|
|
|
asciidoctor {
|
|
outputDir = new File("$buildDir/docs")
|
|
options = [
|
|
eruby: 'erubis',
|
|
attributes: [
|
|
copycss : '',
|
|
icons : 'font',
|
|
'source-highlighter': 'prettify',
|
|
sectanchors : '',
|
|
toc2: '',
|
|
idprefix: '',
|
|
idseparator: '-',
|
|
doctype: 'book',
|
|
numbered: '',
|
|
'spring-ldap-version' : project.version,
|
|
revnumber : project.version
|
|
]
|
|
]
|
|
}
|
|
|
|
task api(type: Javadoc) {
|
|
group = "Documentation"
|
|
description = "Generates aggregated Javadoc API documentation."
|
|
title = "${rootProject.description} ${version} API"
|
|
|
|
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
|
|
options.author = true
|
|
options.header = rootProject.description
|
|
options.splitIndex = true
|
|
options.links(project.ext.javadocLinks)
|
|
|
|
maxMemory = "1536m"
|
|
destinationDir = new File(buildDir, "api")
|
|
|
|
source coreModules*.javadoc*.source
|
|
classpath = files(coreModules*.javadoc*.classpath)
|
|
}
|
|
|
|
task docsZip(type: Zip, dependsOn: asciidoctor) {
|
|
group = "Distribution"
|
|
baseName = "spring-ldap"
|
|
classifier = "docs"
|
|
description = "Builds -${classifier} archive containing api and reference " +
|
|
"for deployment at https://docs.spring.io/spring-ldap/docs."
|
|
|
|
from("src/dist") {
|
|
include "changelog.txt"
|
|
}
|
|
|
|
from (api) {
|
|
into "apidocs"
|
|
}
|
|
|
|
from (new File(asciidoctor.outputDir, "html5")) {
|
|
include "*.html"
|
|
into "reference"
|
|
}
|
|
}
|
|
|
|
task schemaZip(type: Zip) {
|
|
group = 'Distribution'
|
|
baseName = rootProject.name
|
|
classifier = 'schema'
|
|
description = "Builds -${classifier} archive containing all " +
|
|
"XSDs for deployment at static.springframework.org/schema."
|
|
|
|
coreModules.each { module ->
|
|
def Properties schemas = new Properties();
|
|
|
|
module.sourceSets.main.resources.find {
|
|
it.path.endsWith('META-INF/spring.schemas')
|
|
}?.withInputStream { schemas.load(it) }
|
|
|
|
for (def key : schemas.keySet()) {
|
|
def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1')
|
|
assert shortName != key
|
|
File xsdFile = module.sourceSets.main.resources.find {
|
|
it.path.endsWith(schemas.get(key))
|
|
}
|
|
assert xsdFile != null
|
|
into (shortName) {
|
|
from xsdFile.path
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
task distZip(type: Zip, dependsOn: [docsZip]) {
|
|
dependsOn subprojects*.tasks*.matching { task -> task.name == 'assemble' }
|
|
|
|
group = "Distribution"
|
|
baseName = "spring-ldap"
|
|
classifier = "dist"
|
|
description = "Builds -${classifier} archive, containing all jars and docs, " +
|
|
"suitable for community download page."
|
|
|
|
ext.baseDir = "${baseName}-${project.version}"
|
|
|
|
|
|
from("src/dist") {
|
|
include "readme.md"
|
|
include "license.txt"
|
|
include "notice.txt"
|
|
into "${baseDir}"
|
|
expand(copyright: new Date().format("yyyy"), version: project.version)
|
|
}
|
|
|
|
from(zipTree(docsZip.archivePath)) {
|
|
into "${baseDir}/docs"
|
|
}
|
|
|
|
coreModules.each { subproject ->
|
|
into ("${baseDir}/libs") {
|
|
from subproject.jar
|
|
if (subproject.tasks.findByPath("sourcesJar")) {
|
|
from subproject.sourcesJar
|
|
}
|
|
if (subproject.tasks.findByPath("javadocJar")) {
|
|
from subproject.javadocJar
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
archives docsZip
|
|
archives distZip
|
|
archives schemaZip
|
|
}
|