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://services.gradle.org/distributions/gradle- (404) migrated to: https://services.gradle.org/distributions/gradle- ([https](https://services.gradle.org/distributions/gradle-) result 404). ## Fixed Success These URLs were fixed successfully. * http://projects.spring.io/spring-integration/ migrated to: https://projects.spring.io/spring-integration/ ([https](https://projects.spring.io/spring-integration/) result 200). * http://springsource.org (301) migrated to: https://spring.io ([https](https://springsource.org) 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). * http://www.project-voldemort.com/voldemort/configuration.html migrated to: https://www.project-voldemort.com/voldemort/configuration.html ([https](https://www.project-voldemort.com/voldemort/configuration.html) result 200). * http://repo.springsource.org/libs-milestone migrated to: https://repo.springsource.org/libs-milestone ([https](https://repo.springsource.org/libs-milestone) 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://repo.springsource.org/plugins-release migrated to: https://repo.springsource.org/plugins-release ([https](https://repo.springsource.org/plugins-release) result 301). * http://www.gradle.org/docs/current/dsl/org.gradle.api.artifacts.ConfigurationContainer.html migrated to: https://www.gradle.org/docs/current/dsl/org.gradle.api.artifacts.ConfigurationContainer.html ([https](https://www.gradle.org/docs/current/dsl/org.gradle.api.artifacts.ConfigurationContainer.html) result 301). * http://www.gradle.org/docs/current/userguide/dependency_management.html migrated to: https://www.gradle.org/docs/current/userguide/dependency_management.html ([https](https://www.gradle.org/docs/current/userguide/dependency_management.html) result 301). * http://www.springsource.org/spring-integration migrated to: https://www.springsource.org/spring-integration ([https](https://www.springsource.org/spring-integration) result 301). * http://repo.spring.io/libs-milestone migrated to: https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302). * http://repo.spring.io/libs-snapshot migrated to: https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302). * http://repo.spring.io/libs-staging-local migrated to: https://repo.spring.io/libs-staging-local ([https](https://repo.spring.io/libs-staging-local) result 302). * http://repo.spring.io/plugins-release migrated to: https://repo.spring.io/plugins-release ([https](https://repo.spring.io/plugins-release) result 302). # 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
170 lines
4.1 KiB
Groovy
170 lines
4.1 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'eclipse'
|
|
id 'idea'
|
|
id 'jacoco'
|
|
id 'org.sonarqube' version '2.6.2'
|
|
}
|
|
|
|
apply from: "${rootProject.projectDir}/publish-maven.gradle"
|
|
|
|
description = 'Spring Integration Etcd Support'
|
|
group = 'org.springframework.integration'
|
|
|
|
repositories {
|
|
if (version.endsWith('BUILD-SNAPSHOT')) {
|
|
maven { url 'https://repo.spring.io/libs-snapshot' }
|
|
}
|
|
maven { url 'https://repo.spring.io/libs-milestone' }
|
|
}
|
|
|
|
sourceCompatibility = targetCompatibility = 1.8
|
|
|
|
ext {
|
|
etcdVersion = '0.0.7'
|
|
log4jVersion = '2.11.1'
|
|
springIntegrationVersion = '5.0.8.RELEASE'
|
|
|
|
|
|
idPrefix = 'etcd'
|
|
|
|
linkHomepage = 'https://github.com/spring-projects/spring-integration-extensions'
|
|
linkCi = 'https://build.spring.io/browse/INTEXT'
|
|
linkIssue = 'https://jira.spring.io/browse/INTEXT'
|
|
linkScmUrl = 'https://github.com/spring-projects/spring-integration-extensions'
|
|
linkScmConnection = 'https://github.com/spring-projects/spring-integration-extensions.git'
|
|
linkScmDevConnection = 'git@github.com:spring-projects/spring-integration-extensions.git'
|
|
}
|
|
|
|
eclipse.project.natures += 'org.springframework.ide.eclipse.core.springnature'
|
|
|
|
sourceSets {
|
|
test {
|
|
resources {
|
|
srcDirs = ['src/test/resources', 'src/test/java']
|
|
}
|
|
}
|
|
}
|
|
|
|
jacoco {
|
|
toolVersion = "0.8.2"
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.springframework.integration:spring-integration-core:$springIntegrationVersion"
|
|
compile "com.ibm.etcd:etcd-java:$etcdVersion"
|
|
|
|
testCompile "org.springframework.integration:spring-integration-test:$springIntegrationVersion"
|
|
|
|
testRuntime "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
|
|
}
|
|
|
|
// enable all compiler warnings; individual projects may customize further
|
|
[compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:all,-options']
|
|
|
|
test {
|
|
// suppress all console output during testing unless running `gradle -i`
|
|
logging.captureStandardOutput(LogLevel.INFO)
|
|
|
|
maxHeapSize = "1024m"
|
|
jacoco {
|
|
append = false
|
|
destinationFile = file("$buildDir/jacoco.exec")
|
|
}
|
|
}
|
|
|
|
jacocoTestReport {
|
|
reports {
|
|
xml.enabled false
|
|
csv.enabled false
|
|
html.destination file("${buildDir}/reports/jacoco/html")
|
|
}
|
|
}
|
|
|
|
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 distZip(type: Zip) {
|
|
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 'readme.txt'
|
|
include 'license.txt'
|
|
include 'notice.txt'
|
|
into "${baseDir}"
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
task dist(dependsOn: assemble) {
|
|
group = 'Distribution'
|
|
description = 'Builds -dist distribution archives.'
|
|
}
|