Files
spring-integration/spring-integration-jdbc/build.gradle
Artem Bilan 178c86faa4 INT-3683: Fix typo in schema.sql.vpp
JIRA: https://jira.spring.io/browse/INT-3683

* In addition fix `inputs` for the Gradle `generateSql` task and regenerate all SQLs
to apply the typo fix.
The previous way to generate sql scripts doesn't work properly. It is always as `UP-TO-DATE`.
Adding `inputs` to the `generateSql` show the correct behaviour.
From other side that makes `cleanSql` task as redundant.
* Applying the Travis config fix to this commit as well.

Fix HTTP test timeout

https://build.spring.io/browse/INT-B41-346

Fix `ProducerAndConsumerAutoStartupTests`

https://build.spring.io/browse/INT-B41-346

Fix `DelayerUsageTests` `time` bean scope bug

https://build.spring.io/browse/INT-B41-347

Fix `HttpInboundGatewayParserTests.java` generics Java < 8 compiler warnings

Increase Tomcat response timeout for WebSocket tests

https://build.spring.io/browse/INT-B41-349

Increase timeout in the `AsyncMessagingTemplateTests#executionException()`

Fix `ClassCastException` for the `StandardWebSocketClient#userProperties`

Increase Delay to 2 Seconds in DelayHandlerTests
2015-07-24 16:10:05 -04:00

50 lines
1.7 KiB
Groovy

//apply plugin: 'java'
/**
* Generate schema creation and drop scripts for various databases
* supported by the Spring Integration JDBC adapter.
*
* @author David Syer (original Ant/Maven work)
* @author Chris Beams (port to Gradle)
*/
task generateSql {
group = "Build"
description = "Generates schema creation and drop scripts for supported databases."
configurations { vpp }
dependencies { vpp 'foundrylogic.vpp:vpp:2.2.1' }
inputs.dir new File('src/main/sql')
def generatedResourcesDir = new File('src/main/resources/org/springframework/integration/jdbc')
outputs.dir generatedResourcesDir
ant.typedef(resource: 'foundrylogic/vpp/typedef.properties',
classpath: configurations.vpp.asPath)
ant.taskdef(resource: 'foundrylogic/vpp/taskdef.properties',
classpath: configurations.vpp.asPath)
doLast {
['hsqldb', 'h2', 'db2', 'derby', 'mysql', 'mysql-5_6_4',
'oracle10g', 'postgresql', 'sqlserver', 'sybase'].each { dbType ->
ant.vppcopy(todir: generatedResourcesDir) {
config {
context {
property key: 'includes', value: 'src/main/sql'
property file: "src/main/sql/${dbType}.properties"
}
engine {
property key: 'velocimacro.library', value: "src/main/sql/${dbType}.vpp"
}
}
fileset dir: 'src/main/sql', includes: 'schema*.sql.vpp'
mapper type: 'glob', from: '*.sql.vpp', to: "*-${dbType}.sql"
}
}
}
}
// tie schema generation to the build lifecycle
compileJava.dependsOn generateSql