Upgrade to Splunk Client 1.5.0.0

Upgrade to SI-4.2.2
Upgrade to Gradle 2.5
Remove unused dependencies
This commit is contained in:
fbalicchia
2015-11-15 21:58:52 +01:00
committed by Artem Bilan
parent 3a9412293d
commit 3cdd41a926
2 changed files with 53 additions and 50 deletions

View File

@@ -1,12 +1,12 @@
description = 'Spring Integration Splunk Adapter' description = 'Spring Integration Splunk Support'
buildscript { buildscript {
repositories { repositories {
maven { url 'http://repo.spring.io/plugins-release' } maven { url 'http://repo.spring.io/plugins-release' }
} }
dependencies { dependencies {
classpath 'org.springframework.build.gradle:docbook-reference-plugin:0.2.8' classpath 'io.spring.gradle:docbook-reference-plugin:0.3.1'
classpath 'org.springframework.build.gradle:spring-io-plugin:0.0.3.RELEASE' classpath 'io.spring.gradle:spring-io-plugin:0.0.4.RELEASE'
} }
} }
@@ -14,16 +14,17 @@ apply plugin: 'java'
apply from: "${rootProject.projectDir}/publish-maven.gradle" apply from: "${rootProject.projectDir}/publish-maven.gradle"
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'jacoco'
if (project.hasProperty('platformVersion')) { if (project.hasProperty('platformVersion')) {
apply plugin: 'spring-io' apply plugin: 'spring-io'
repositories { dependencyManagement {
maven { url "https://repo.spring.io/libs-snapshot" } springIoTestRuntime {
} imports {
mavenBom "io.spring.platform:platform-bom:${platformVersion}"
dependencies { }
springIoVersions "io.spring.platform:platform-versions:${platformVersion}@properties" }
} }
} }
@@ -31,40 +32,40 @@ group = 'org.springframework.integration'
repositories { repositories {
maven { url 'http://repo.spring.io/libs-milestone' } maven { url 'http://repo.spring.io/libs-milestone' }
if (project.hasProperty('platformVersion')) {
maven { url 'https://repo.spring.io/snapshot' }
}
} }
sourceCompatibility=1.6 sourceCompatibility = targetCompatibility = 1.7
targetCompatibility=1.6
ext { ext {
linkHomepage = 'https://github.com/spring-projects/spring-integration-extensions'
jodaTimeVersion = '2.3'
splunkVersion = '1.5.0.0'
springIntegrationVersion = '4.2.2.RELEASE'
linkHomepage = 'https://github.com/spring-projects/spring-integration-splunk'
linkCi = 'https://build.spring.io/browse/INTEXT' linkCi = 'https://build.spring.io/browse/INTEXT'
linkIssue = 'https://jira.spring.io/browse/INTEXT' linkIssue = 'https://jira.spring.io/browse/INTEXT'
linkScmUrl = 'https://github.com/spring-projects/spring-integration-extensions' linkScmUrl = 'https://github.com/spring-projects/spring-integration-splunk'
linkScmConnection = 'https://github.com/spring-projects/spring-integration-extensions.git' linkScmConnection = 'https://github.com/spring-projects/spring-integration-splunk.git'
linkScmDevConnection = 'git@github.com:spring-projects/spring-integration-extensions.git' linkScmDevConnection = 'git@github.com:spring-projects/spring-integration-splunk.git'
shortName = 'splunk' shortName = 'splunk'
} }
// See http://www.gradle.org/docs/current/userguide/dependency_management.html#sub:configurations jacoco {
// and http://www.gradle.org/docs/current/dsl/org.gradle.api.artifacts.ConfigurationContainer.html toolVersion = "0.7.2.201409121644"
configurations {
jacoco //Configuration Group used by Sonar to provide Code Coverage using JaCoCo
} }
dependencies { dependencies {
compile "com.splunk:splunk:$splunkVersion" compile "com.splunk:splunk:$splunkVersion"
compile "org.springframework.integration:spring-integration-core:$springIntegrationVersion" compile "org.springframework.integration:spring-integration-core:$springIntegrationVersion"
compile "joda-time:joda-time:$jodaTimeVersion" compile "joda-time:joda-time:$jodaTimeVersion"
compile "commons-pool:commons-pool:$commonsPoolVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
testCompile "org.springframework.integration:spring-integration-test:$springIntegrationVersion" testCompile "org.springframework.integration:spring-integration-test:$springIntegrationVersion"
testCompile "junit:junit-dep:$junitVersion"
testCompile "log4j:log4j:$log4jVersion"
testCompile "org.springframework.integration:spring-integration-stream:$springIntegrationVersion" testCompile "org.springframework.integration:spring-integration-stream:$springIntegrationVersion"
jacoco group: "org.jacoco", name: "org.jacoco.agent", version: "0.5.6.201201232323", classifier: "runtime"
} }
@@ -85,13 +86,24 @@ sourceSets {
// enable all compiler warnings; individual projects may customize further // enable all compiler warnings; individual projects may customize further
ext.xLintArg = '-Xlint:all,-options' [compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:all,-options']
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg]
test { test {
// suppress all console output during testing unless running `gradle -i` // suppress all console output during testing unless running `gradle -i`
logging.captureStandardOutput(LogLevel.INFO) logging.captureStandardOutput(LogLevel.INFO)
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=*" maxHeapSize = "1024m"
jacoco {
append = false
destinationFile = file("$buildDir/jacoco.exec")
}
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/reports/jacoco/html"
}
} }
task sourcesJar(type: Jar) { task sourcesJar(type: Jar) {
@@ -150,23 +162,23 @@ task schemaZip(type: Zip) {
group = 'Distribution' group = 'Distribution'
classifier = 'schema' classifier = 'schema'
description = "Builds -${classifier} archive containing all " + description = "Builds -${classifier} archive containing all " +
"XSDs for deployment at static.springframework.org/schema." "XSDs for deployment at static.springframework.org/schema."
def Properties schemas = new Properties(); def Properties schemas = new Properties();
project.sourceSets.main.resources.find { project.sourceSets.main.resources.find {
it.path.endsWith('META-INF/spring.schemas') it.path.endsWith("META-INF${File.separator}spring.schemas")
}?.withInputStream { schemas.load(it) } }?.withInputStream { schemas.load(it) }
for (def key : schemas.keySet()) { for (def key : schemas.keySet()) {
File xsdFile = project.sourceSets.main.resources.find { File xsdFile = project.sourceSets.main.resources.find {
it.path.endsWith(schemas.get(key)) it.path.replaceAll('\\\\', '/').endsWith(schemas.get(key))
}
assert xsdFile != null
into ("integration/${shortName}") {
from xsdFile.path
}
} }
assert xsdFile != null
into ("integration/${shortName}") {
from xsdFile.path
}
}
} }
task docsZip(type: Zip) { task docsZip(type: Zip) {
@@ -263,8 +275,6 @@ task dist(dependsOn: assemble) {
task wrapper(type: Wrapper) { task wrapper(type: Wrapper) {
description = 'Generates gradlew[.bat] scripts' description = 'Generates gradlew[.bat] scripts'
gradleVersion = '1.12' gradleVersion = '2.5'
distributionUrl = "http://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip" distributionUrl = "http://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
} }
defaultTasks 'build'

View File

@@ -1,8 +1 @@
splunkVersion=1.3.0
version=1.2.0.BUILD-SNAPSHOT version=1.2.0.BUILD-SNAPSHOT
commonsPoolVersion=1.6
springIntegrationVersion=4.0.2.RELEASE
mockitoVersion=1.9.5
junitVersion=4.11
log4jVersion=1.2.17
jodaTimeVersion=2.3