-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ed2153
commit 20d0192
Showing
22 changed files
with
1,538 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SPRING INTEGRATION JT400 SUPPORT | ||
==================================== | ||
|
||
The jt400 adapters allow you to exchanges messages with an AS/400 system using data queues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,221 @@ | ||
description = 'Spring Integration JT400 Support' | ||
|
||
apply plugin: 'java' | ||
apply from: "${rootProject.projectDir}/publish-maven.gradle" | ||
apply plugin: 'eclipse' | ||
apply plugin: 'idea' | ||
|
||
group = 'org.springframework.integration' | ||
|
||
repositories { | ||
maven { url 'http://repo.spring.io/libs-milestone' } | ||
} | ||
|
||
sourceCompatibility = targetCompatibility = 1.7 | ||
|
||
ext { | ||
jt400Version = '6.7' | ||
jacocoVersion = '0.7.2.201409121644' | ||
springIntegrationVersion = '4.1.3.RELEASE' | ||
|
||
idPrefix = 'jt400' | ||
|
||
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 = '[email protected]: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'] | ||
} | ||
} | ||
} | ||
|
||
configurations { | ||
jacoco //Configuration Group used by Sonar to provide Code Coverage using JaCoCo | ||
} | ||
|
||
dependencies { | ||
compile "org.springframework.integration:spring-integration-core:$springIntegrationVersion" | ||
compile "net.sf.jt400:jt400:$jt400Version" | ||
|
||
testCompile "org.springframework.integration:spring-integration-test:$springIntegrationVersion" | ||
|
||
jacoco "org.jacoco:org.jacoco.agent:$jacocoVersion:runtime" | ||
} | ||
|
||
// 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) | ||
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=*", | ||
"-Dhazelcast.logging.type=slf4j" | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from sourceSets.main.allJava | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
|
||
apply plugin: 'sonar-runner' | ||
|
||
sonarRunner { | ||
sonarProperties { | ||
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 api(type: 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 = rootProject.description | ||
options.overview = 'src/api/overview.html' | ||
options.stylesheetFile = file("src/api/stylesheet.css") | ||
|
||
source = sourceSets.main.allJava | ||
classpath = project.sourceSets.main.compileClasspath | ||
destinationDir = new File(buildDir, "api") | ||
} | ||
|
||
task schemaZip(type: Zip) { | ||
group = 'Distribution' | ||
classifier = 'schema' | ||
description = "Builds -${classifier} archive containing all " + | ||
"XSDs for deployment at static.springframework.org/schema." | ||
|
||
duplicatesStrategy = 'exclude' | ||
|
||
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 api " + | ||
"for deployment at static.spring.io/spring-integration/docs." | ||
|
||
from('src/dist') { | ||
include 'changelog.txt' | ||
} | ||
|
||
from(api) { | ||
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 '*.txt' | ||
into "${baseDir}" | ||
} | ||
|
||
from(zipTree(docsZip.archivePath)) { | ||
into "${baseDir}/docs" | ||
} | ||
|
||
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.' | ||
} | ||
|
||
task wrapper(type: Wrapper) { | ||
description = 'Generates gradlew[.bat] scripts' | ||
gradleVersion = '2.3' | ||
distributionUrl = "http://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version=1.0.0-BUILD-SNAPSHOT |
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
spring-integration-jt400/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Thu Mar 19 00:10:16 GMT 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-2.3-all.zip |
Oops, something went wrong.