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 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://www.puppycrawl.com/dtds/configuration_1_2.dtd (404) with 1 occurrences migrated to: https://www.puppycrawl.com/dtds/configuration_1_3.dtd ([https](https://www.puppycrawl.com/dtds/configuration_1_2.dtd) result 404). * [ ] http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to: https://www.puppycrawl.com/dtds/suppressions_1_2.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404). ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 12 occurrences migrated to: https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200). * [ ] http://www.springframework.org/schema/integration/aws/spring-integration-aws.xsd with 12 occurrences migrated to: https://www.springframework.org/schema/integration/aws/spring-integration-aws.xsd ([https](https://www.springframework.org/schema/integration/aws/spring-integration-aws.xsd) result 200). * [ ] http://www.springframework.org/schema/integration/spring-integration.xsd with 4 occurrences migrated to: https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd) result 200). # Ignored These URLs were intentionally ignored. * http://www.springframework.org/schema/beans with 24 occurrences * http://www.springframework.org/schema/cloud/aws/messaging with 14 occurrences * http://www.springframework.org/schema/integration with 8 occurrences * http://www.springframework.org/schema/integration/aws with 24 occurrences * http://www.w3.org/2001/XMLSchema-instance with 12 occurrences
298 lines
7.7 KiB
Groovy
298 lines
7.7 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url 'http://repo.spring.io/plugins-release' }
|
|
}
|
|
dependencies {
|
|
classpath 'io.spring.gradle:dependency-management-plugin:1.0.7.RELEASE'
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'java'
|
|
id 'eclipse'
|
|
id 'idea'
|
|
id 'jacoco'
|
|
id 'org.sonarqube' version '2.7'
|
|
id 'checkstyle'
|
|
}
|
|
description = 'Spring Integration AWS Support'
|
|
|
|
apply from: "${rootProject.projectDir}/publish-maven.gradle"
|
|
|
|
group = 'org.springframework.integration'
|
|
|
|
repositories {
|
|
// maven { url 'http://repo.spring.io/libs-staging-local' }
|
|
if (version.endsWith('BUILD-SNAPSHOT')) {
|
|
maven { url 'https://repo.spring.io/libs-snapshot' }
|
|
}
|
|
maven { url 'http://repo.spring.io/libs-milestone' }
|
|
}
|
|
|
|
ext {
|
|
assertjVersion = '3.12.0'
|
|
dynamodbLockClientVersion = '1.0.0'
|
|
jacksonVersion = '2.9.8'
|
|
servletApiVersion = '4.0.1'
|
|
log4jVersion = '2.11.2'
|
|
springCloudAwsVersion = '2.1.1.RELEASE'
|
|
springIntegrationVersion = '5.1.4.BUILD-SNAPSHOT'
|
|
|
|
idPrefix = 'aws'
|
|
|
|
linkHomepage = 'https://github.com/spring-projects/spring-integration-aws'
|
|
linkCi = 'https://build.spring.io/browse/INTEXT'
|
|
linkIssue = 'https://jira.spring.io/browse/INTEXT'
|
|
linkScmUrl = 'https://github.com/spring-projects/spring-integration-aws'
|
|
linkScmConnection = 'https://github.com/spring-projects/spring-integration-aws.git'
|
|
linkScmDevConnection = 'git@github.com:spring-projects/spring-integration-aws.git'
|
|
}
|
|
|
|
ext.javadocLinks = [
|
|
"http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/"
|
|
] as String[]
|
|
|
|
compileJava {
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
}
|
|
|
|
sourceSets {
|
|
test {
|
|
resources {
|
|
srcDirs = ['src/test/resources', 'src/test/java']
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "org.springframework.cloud:spring-cloud-aws-dependencies:$springCloudAwsVersion"
|
|
mavenBom "org.springframework.integration:spring-integration-bom:$springIntegrationVersion"
|
|
}
|
|
}
|
|
|
|
jacoco {
|
|
toolVersion = "0.8.2"
|
|
}
|
|
|
|
checkstyle {
|
|
configFile = file("${rootDir}/src/checkstyle/checkstyle.xml")
|
|
toolVersion = "8.17"
|
|
}
|
|
|
|
dependencies {
|
|
compile 'org.springframework.integration:spring-integration-core'
|
|
compile 'org.springframework.cloud:spring-cloud-aws-core'
|
|
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
|
|
|
|
compile('org.springframework.cloud:spring-cloud-aws-messaging', optional)
|
|
compile('org.springframework.integration:spring-integration-file', optional)
|
|
compile('org.springframework.integration:spring-integration-http', optional)
|
|
|
|
compile('com.amazonaws:aws-java-sdk-kinesis', optional)
|
|
compile('com.amazonaws:aws-java-sdk-dynamodb', optional)
|
|
compile("com.amazonaws:dynamodb-lock-client:$dynamodbLockClientVersion", optional)
|
|
|
|
compile("javax.servlet:javax.servlet-api:$servletApiVersion", provided)
|
|
|
|
testCompile 'org.springframework.integration:spring-integration-test'
|
|
testCompile "org.assertj:assertj-core:$assertjVersion"
|
|
|
|
testRuntime "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
|
|
testRuntime "org.apache.logging.log4j:log4j-jcl:$log4jVersion"
|
|
}
|
|
|
|
eclipse.project.natures += 'org.springframework.ide.eclipse.core.springnature'
|
|
|
|
javadoc {
|
|
group = 'Documentation'
|
|
description = 'Generates the Javadoc API documentation.'
|
|
title = "${rootProject.description} ${version} API"
|
|
|
|
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
|
|
options.author = true
|
|
options.header = project.description
|
|
options.overview = 'src/api/overview.html'
|
|
options.stylesheetFile = file("src/api/stylesheet.css")
|
|
options.splitIndex = true
|
|
options.links(project.ext.javadocLinks)
|
|
|
|
source = sourceSets.main.allJava
|
|
classpath = project.sourceSets.main.compileClasspath
|
|
destinationDir = new File(buildDir, "api")
|
|
|
|
// suppress warnings due to cross-module @see and @link references;
|
|
// note that global 'api' task does display all warnings.
|
|
logging.captureStandardError LogLevel.INFO
|
|
logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message
|
|
}
|
|
|
|
// enable all compiler warnings; individual projects may customize further
|
|
ext.xLintArg = '-Xlint:all,-options'
|
|
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg]
|
|
|
|
test {
|
|
maxHeapSize = "1024m"
|
|
jacoco {
|
|
append = false
|
|
destinationFile = file("$buildDir/jacoco.exec")
|
|
}
|
|
}
|
|
|
|
tasks.withType(Test).all {
|
|
// suppress all console output during testing unless running `gradle -i`
|
|
logging.captureStandardOutput(LogLevel.INFO)
|
|
}
|
|
|
|
jacocoTestReport {
|
|
reports {
|
|
xml.enabled false
|
|
csv.enabled false
|
|
html.destination file("${buildDir}/reports/jacoco/html")
|
|
}
|
|
}
|
|
|
|
check.dependsOn javadoc
|
|
build.dependsOn jacocoTestReport
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allJava
|
|
}
|
|
|
|
task javadocJar(type: Jar) {
|
|
classifier = 'javadoc'
|
|
from javadoc
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
sonarqube {
|
|
properties {
|
|
property "sonar.jacoco.reportPath", "${buildDir.name}/jacoco.exec"
|
|
property "sonar.links.homepage", linkHomepage
|
|
property "sonar.links.ci", linkCi
|
|
property "sonar.links.issue", linkIssue
|
|
property "sonar.links.scm", linkScmUrl
|
|
property "sonar.links.scm_dev", linkScmDevConnection
|
|
property "sonar.java.coveragePlugin", "jacoco"
|
|
}
|
|
}
|
|
|
|
task schemaZip(type: Zip) {
|
|
group = 'Distribution'
|
|
classifier = 'schema'
|
|
description = "Builds -${classifier} archive containing all " +
|
|
"XSDs for deployment at static.springframework.org/schema."
|
|
|
|
def Properties schemas = new Properties();
|
|
def shortName = idPrefix.replaceFirst("${idPrefix}-", '')
|
|
|
|
project.sourceSets.main.resources.find {
|
|
it.path.endsWith("META-INF${File.separator}spring.schemas")
|
|
}?.withInputStream { schemas.load(it) }
|
|
|
|
for (def key : schemas.keySet()) {
|
|
File xsdFile = project.sourceSets.main.resources.find {
|
|
it.path.replaceAll('\\\\', '/').endsWith(schemas.get(key))
|
|
}
|
|
assert xsdFile != null
|
|
into("integration/${shortName}") {
|
|
from xsdFile.path
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
task docsZip(type: Zip) {
|
|
group = 'Distribution'
|
|
classifier = 'docs'
|
|
description = "Builds -${classifier} archive containing the JavaDoc api " +
|
|
"for deployment at static.springframework.org/spring-integration/docs."
|
|
|
|
from('.') {
|
|
include 'README.md'
|
|
}
|
|
|
|
from(javadoc) {
|
|
into 'api'
|
|
}
|
|
|
|
}
|
|
|
|
task distZip(type: Zip, dependsOn: [docsZip, schemaZip]) {
|
|
group = 'Distribution'
|
|
classifier = 'dist'
|
|
description = "Builds -${classifier} archive, containing all jars and docs, " +
|
|
"suitable for community download page."
|
|
|
|
ext.baseDir = "${project.name}-${project.version}";
|
|
|
|
from('src/dist') {
|
|
include 'license.txt'
|
|
include 'notice.txt'
|
|
into "${baseDir}"
|
|
}
|
|
|
|
from('.') {
|
|
include 'README.md'
|
|
into "${baseDir}"
|
|
}
|
|
|
|
from(zipTree(schemaZip.archivePath)) {
|
|
into "${baseDir}/schema"
|
|
}
|
|
|
|
into("${baseDir}/libs") {
|
|
from project.jar
|
|
from project.sourcesJar
|
|
from project.javadocJar
|
|
}
|
|
}
|
|
|
|
// Create an optional "with dependencies" distribution.
|
|
// Not published by default; only for use when building from source.
|
|
task depsZip(type: Zip, dependsOn: distZip) { zipTask ->
|
|
group = 'Distribution'
|
|
classifier = 'dist-with-deps'
|
|
description = "Builds -${classifier} archive, containing everything " +
|
|
"in the -${distZip.classifier} archive plus all dependencies."
|
|
|
|
from zipTree(distZip.archivePath)
|
|
|
|
gradle.taskGraph.whenReady { taskGraph ->
|
|
if (taskGraph.hasTask(":${zipTask.name}")) {
|
|
def projectName = rootProject.name
|
|
def artifacts = new HashSet()
|
|
|
|
rootProject.configurations.runtime.resolvedConfiguration.resolvedArtifacts.each { artifact ->
|
|
def dependency = artifact.moduleVersion.id
|
|
if (!projectName.equals(dependency.name)) {
|
|
artifacts << artifact.file
|
|
}
|
|
}
|
|
|
|
zipTask.from(artifacts) {
|
|
into "${distZip.baseDir}/deps"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
archives distZip
|
|
archives docsZip
|
|
archives schemaZip
|
|
}
|
|
|
|
task dist(dependsOn: assemble) {
|
|
group = 'Distribution'
|
|
description = 'Builds -dist, -docs and -schema distribution archives.'
|
|
}
|