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). 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://www.gemstone.com/docs/6.5.1/product/docs/japi/ (ConnectTimeoutException) with 1 occurrences migrated to: https://www.gemstone.com/docs/6.5.1/product/docs/japi/ ([https](https://www.gemstone.com/docs/6.5.1/product/docs/japi/) result ConnectTimeoutException). * http://atinject.googlecode.com/svn/trunk/javadoc/ (404) with 1 occurrences migrated to: https://atinject.googlecode.com/svn/trunk/javadoc/ ([https](https://atinject.googlecode.com/svn/trunk/javadoc/) result 404). * http://logging.apache.org/log4j/docs/api/ (404) with 1 occurrences migrated to: https://logging.apache.org/log4j/docs/api/ ([https](https://logging.apache.org/log4j/docs/api/) result 404). These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * http://maven.apache.org/xsd/maven-4.0.0.xsd with 1 occurrences migrated to: https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200). * http://www.apache.org/licenses/LICENSE-2.0.txt with 1 occurrences migrated to: https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200). * http://asm.objectweb.org/asm223/javadoc/user (301) with 1 occurrences migrated to: https://asm.ow2.org/asm223/javadoc/user ([https](https://asm.objectweb.org/asm223/javadoc/user) result 301). * http://static.springframework.org/spring/docs/3.1.x/javadoc-api (301) with 1 occurrences migrated to: https://docs.spring.io/spring/docs/3.1.x/javadoc-api ([https](https://static.springframework.org/spring/docs/3.1.x/javadoc-api) result 301). * http://github.com/SpringSource/spring-gemfire with 2 occurrences migrated to: https://github.com/SpringSource/spring-gemfire ([https](https://github.com/SpringSource/spring-gemfire) result 301). * http://repo.springsource.org/libs-snapshot with 1 occurrences migrated to: https://repo.springsource.org/libs-snapshot ([https](https://repo.springsource.org/libs-snapshot) result 301). * http://www.springsource.org/spring-gemfire with 1 occurrences migrated to: https://www.springsource.org/spring-gemfire ([https](https://www.springsource.org/spring-gemfire) result 301). * http://download.oracle.com/javase/6/docs/api with 1 occurrences migrated to: https://download.oracle.com/javase/6/docs/api ([https](https://download.oracle.com/javase/6/docs/api) result 302). These URLs were intentionally ignored. * http://maven.apache.org/POM/4.0.0 with 2 occurrences * http://www.w3.org/2001/XMLSchema-instance with 1 occurrences Resolves gh-100.
339 lines
9.9 KiB
Groovy
339 lines
9.9 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url 'https://repo.spring.io/plugins-release' }
|
|
}
|
|
dependencies {
|
|
classpath('org.asciidoctor:asciidoctor-gradle-plugin:1.5.0')
|
|
classpath('org.asciidoctor:asciidoctorj:1.5.0')
|
|
classpath 'io.spring.gradle:docbook-reference-plugin:0.3.0'
|
|
classpath 'org.springframework.build.gradle:bundlor-plugin:0.1.2'
|
|
classpath 'org.springframework.build.gradle:spring-io-plugin:0.0.3.RELEASE'
|
|
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.6'
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
sharedResources
|
|
}
|
|
|
|
description = 'Spring Data GemFire'
|
|
group = 'org.springframework.data'
|
|
|
|
repositories {
|
|
maven { url "https://repo.spring.io/libs-release" }
|
|
maven { url "https://repo.spring.io/plugins-release" }
|
|
}
|
|
|
|
apply plugin: "java"
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
apply from: "$rootDir/maven.gradle"
|
|
apply plugin: 'bundlor'
|
|
apply plugin: 'propdeps'
|
|
apply plugin: 'docbook-reference'
|
|
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
|
|
|
|
//project.bundlor.bundleSymbolicName = "${bundleSymbolicName}"
|
|
|
|
if (project.hasProperty('platformVersion')) {
|
|
apply plugin: 'spring-io'
|
|
|
|
repositories {
|
|
maven { url "https://repo.spring.io/libs-snapshot" }
|
|
}
|
|
|
|
dependencies {
|
|
springIoVersions "io.spring.platform:platform-versions:${platformVersion}@properties"
|
|
}
|
|
}
|
|
|
|
[compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:-serial"]
|
|
|
|
tasks.withType(Test).all {
|
|
forkEvery = 1
|
|
systemProperties['gemfire.disableShutdownHook'] = 'true'
|
|
systemProperties['javax.net.ssl.keyStore'] = System.getProperty('user.dir') + '/src/test/resources/trusted.keystore'
|
|
systemProperties['org.springframework.data.gemfire.test.GemfireTestRunner.nomock'] = System.getProperty('org.springframework.data.gemfire.test.GemfireTestRunner.nomock')
|
|
}
|
|
|
|
// Common dependencies
|
|
dependencies {
|
|
// Spring Framework
|
|
compile("org.springframework:spring-core:$springVersion") {
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
}
|
|
compile("org.springframework:spring-aop:$springVersion") {
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
}
|
|
compile("org.springframework:spring-context-support:$springVersion") {
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
}
|
|
compile("org.springframework:spring-tx:$springVersion") {
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
}
|
|
|
|
// Spring Data
|
|
compile("org.springframework.data:spring-data-commons:${springDataCommonsVersion}") {
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
}
|
|
|
|
// GemFire
|
|
compile("com.gemstone.gemfire:gemfire:$gemfireVersion")
|
|
optional("com.google.code.findbugs:annotations:2.0.2")
|
|
runtime("antlr:antlr:$antlrVersion")
|
|
|
|
compile "org.aspectj:aspectjweaver:$aspectjVersion"
|
|
compile "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
|
|
compile "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
|
|
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
|
|
|
|
// Testing
|
|
testCompile("org.springframework:spring-test:$springVersion") {
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
}
|
|
testCompile "junit:junit:$junitVersion"
|
|
testCompile "org.hamcrest:hamcrest-core:$hamcrestVersion"
|
|
testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion"
|
|
testCompile "org.mockito:mockito-core:$mockitoVersion"
|
|
|
|
testCompile "javax.annotation:jsr250-api:1.0", optional
|
|
testRuntime "log4j:log4j:$log4jVersion"
|
|
testRuntime "org.apache.derby:derbyLocale_zh_TW:10.9.1.0"
|
|
testRuntime "org.slf4j:slf4j-log4j12:$slf4jVersion"
|
|
|
|
sharedResources "org.springframework.data.build:spring-data-build-resources:$springDataBuildVersion@zip"
|
|
}
|
|
|
|
sourceCompatibility = 1.6
|
|
targetCompatibility = 1.6
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
allprojects {
|
|
tasks.withType(Javadoc) {
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
}
|
|
}
|
|
}
|
|
|
|
javadoc {
|
|
dependsOn = [ 'extractSharedResources' ]
|
|
|
|
ext.srcDir = file("${projectDir}/docs/src/api")
|
|
destinationDir = file("${buildDir}/api")
|
|
ext.tmpDir = file("${buildDir}/api-work")
|
|
|
|
configure(options) {
|
|
stylesheetFile = file("$buildDir/shared-resources/javadoc/spring-javadoc.css")
|
|
overview = "${srcDir}/overview.html"
|
|
docFilesSubDirs = true
|
|
outputLevel = org.gradle.external.javadoc.JavadocOutputLevel.QUIET
|
|
breakIterator = true
|
|
showFromProtected()
|
|
groups = [
|
|
'Spring GemFire' : ['org.springframework.data.gemfire*'],
|
|
]
|
|
|
|
links = [
|
|
"https://docs.spring.io/spring/docs/3.1.x/javadoc-api",
|
|
"https://download.oracle.com/javase/6/docs/api",
|
|
"https://www.gemstone.com/docs/6.5.1/product/docs/japi/",
|
|
"https://asm.ow2.org/asm223/javadoc/user",
|
|
"https://logging.apache.org/log4j/docs/api/",
|
|
"https://atinject.googlecode.com/svn/trunk/javadoc/"
|
|
]
|
|
|
|
exclude "org/springframework/data/gemfire/config/**"
|
|
}
|
|
|
|
title = "${rootProject.description} ${version} API"
|
|
}
|
|
|
|
jar {
|
|
|
|
dependsOn = [ 'bundlor' ]
|
|
|
|
manifest.attributes['Implementation-Title'] = 'spring-data-gemfire'
|
|
manifest.attributes['Implementation-Version'] = project.version
|
|
|
|
from("$rootDir/docs/src/info") {
|
|
include "license.txt"
|
|
include "notice.txt"
|
|
into "META-INF"
|
|
expand(copyright: new Date().format('yyyy'), version: project.version)
|
|
}
|
|
}
|
|
|
|
bundlor {
|
|
manifestTemplate = file("template.mf").text
|
|
}
|
|
|
|
// Reference documentation
|
|
|
|
reference {
|
|
// Avoid copy with expansions
|
|
expandPlaceholders = '';
|
|
}
|
|
|
|
referencePdf {
|
|
dependsOn = [ 'asciidoctor' ]
|
|
sourceDir = asciidoctor.outputDir
|
|
}
|
|
|
|
asciidoctor {
|
|
dependsOn = [ 'extractSharedResources' ]
|
|
backends = [ 'html5', 'docbook' ]
|
|
options = [
|
|
doctype: 'book',
|
|
eruby: 'erubis',
|
|
attributes: [
|
|
linkcss: true,
|
|
copycss : "$buildDir/shared-resources/asciidoc/spring.css",
|
|
icons : 'font',
|
|
'source-highlighter': 'prettify',
|
|
sectanchors : true,
|
|
toclevels: '3',
|
|
sectids: false,
|
|
numbered: true,
|
|
version: project.version,
|
|
stylesheet: "spring.css",
|
|
]
|
|
]
|
|
}
|
|
|
|
task sourcesJar(type: Jar, dependsOn:classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allJava
|
|
}
|
|
|
|
task javadocJar(type: Jar) {
|
|
classifier = 'javadoc'
|
|
from javadoc
|
|
}
|
|
|
|
task docsZip(type: Zip) {
|
|
group = 'Distribution'
|
|
classifier = 'docs'
|
|
description = "Builds -${classifier} archive containing api and reference for deployment"
|
|
dependsOn = [ 'javadoc', 'asciidoctor', 'referencePdf' ]
|
|
|
|
from('docs/src/info') {
|
|
include 'changelog.txt'
|
|
}
|
|
|
|
from (javadoc) {
|
|
into 'api'
|
|
}
|
|
|
|
from (asciidoctor.outputDir) {
|
|
include "index.html"
|
|
include "spring.css"
|
|
into 'reference/html'
|
|
}
|
|
|
|
from (referencePdf.outputDir) {
|
|
into 'reference'
|
|
}
|
|
}
|
|
|
|
task schemaZip(type: Zip) {
|
|
group = 'Distribution'
|
|
classifier = 'schema'
|
|
description = "Builds -${classifier} archive containing all XSDs for deployment"
|
|
|
|
def Properties schemas = new Properties();
|
|
|
|
sourceSets.main.resources.find {
|
|
it.path.endsWith('META-INF' + File.separator + 'spring.schemas')
|
|
}?.withInputStream { schemas.load(it) }
|
|
|
|
for (def key : schemas.keySet()) {
|
|
def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1')
|
|
def alias = key.replaceAll(/http.*schema.(.*).(spring-.*)/, '$2')
|
|
assert shortName != key
|
|
File xsdFile = sourceSets.main.resources.find {
|
|
it.path.replace('\\', '/').endsWith(schemas.get(key))
|
|
}
|
|
assert xsdFile != null
|
|
|
|
into (shortName) {
|
|
from xsdFile.path
|
|
rename { String fileName -> alias }
|
|
}
|
|
}
|
|
}
|
|
|
|
task distZip(type: Zip, dependsOn: [jar, docsZip, schemaZip, sourcesJar, javadocJar]) {
|
|
group = 'Distribution'
|
|
classifier = 'dist'
|
|
description = "Builds -${classifier} archive, containing all jars and docs, " +
|
|
"suitable for community download page."
|
|
|
|
ext.zipRootDir = "${project.name}-${project.version}"
|
|
|
|
into (zipRootDir) {
|
|
from('docs/src/info') {
|
|
include 'readme.txt'
|
|
include 'license.txt'
|
|
include 'notice.txt'
|
|
expand(copyright: new Date().format('yyyy'), version: project.version)
|
|
}
|
|
|
|
from('samples/') {
|
|
into 'samples'
|
|
exclude '**/build/**'
|
|
exclude '**/target/**'
|
|
exclude '**/.gradle/**'
|
|
exclude '**/vf*.*'
|
|
exclude '**/vf*.txt'
|
|
}
|
|
|
|
from(zipTree(docsZip.archivePath)) {
|
|
into "docs"
|
|
}
|
|
|
|
from(zipTree(schemaZip.archivePath)) {
|
|
into "schema"
|
|
}
|
|
into ("dist") {
|
|
from rootProject.collect { project -> project.libsDir }
|
|
}
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
|
|
archives docsZip
|
|
archives schemaZip
|
|
archives distZip
|
|
}
|
|
|
|
task wrapper(type: Wrapper) {
|
|
description = "Generates gradlew[.bat] scripts"
|
|
gradleVersion = "1.9"
|
|
|
|
doLast() {
|
|
def gradleOpts = "-XX:MaxPermSize=1024m -Xms256m -Xmx1024m"
|
|
def gradleBatOpts = "$gradleOpts -XX:MaxHeapSize=1024m"
|
|
File wrapperFile = file("gradlew")
|
|
wrapperFile.text = wrapperFile.text.replace("DEFAULT_JVM_OPTS=",
|
|
"GRADLE_OPTS=\"$gradleOpts \$GRADLE_OPTS\"\nDEFAULT_JVM_OPTS=")
|
|
File wrapperBatFile = file("gradlew.bat")
|
|
wrapperBatFile.text = wrapperBatFile.text.replace("set DEFAULT_JVM_OPTS=",
|
|
"set GRADLE_OPTS=$gradleBatOpts %GRADLE_OPTS%\nset DEFAULT_JVM_OPTS=")
|
|
}
|
|
}
|
|
|
|
task extractSharedResources(type: Copy) {
|
|
|
|
from { // use of closure defers evaluation until execution time
|
|
configurations.sharedResources.collect { zipTree(it) }
|
|
}
|
|
|
|
into "$buildDir/shared-resources"
|
|
}
|
|
|
|
assemble.dependsOn = ['jar', 'sourcesJar']
|
|
defaultTasks 'build'
|