sourceCompatibility = 1.8
+
repositories {
mavenCentral()
maven { url 'https://dl.bintray.com/palantir/releases' }
compile('com.fasterxml.jackson.core:jackson-databind:2.8.1')
- // Loading data base in run time
- compile("org.liquibase:liquibase-core:3.5.3")
+ // Loading data base in run time either using liquibase
+ compile('org.liquibase:liquibase-core:3.5.3')
+ // or flyway
+ compile('org.flywaydb:flyway-core:4.0.3')
// Jackson Java time support
testCompile 'com.palantir.docker.compose:docker-compose-rule:0.28.1'
}
-sourceSets {
- integTest {
- compileClasspath += main.output + test.output
- runtimeClasspath += main.output + test.output
- }
-}
-
-configurations {
- integTestCompile.extendsFrom testCompile
- integTestRuntime.extendsFrom testRuntime
-}
test {
testLogging {
}
}
+
+// ****************** CUSTOM TASK FOR INTEGRATION TESTS (something like maven-failsafe-plugin) *********************
+
+sourceSets {
+ integTest {
+ compileClasspath += main.output + test.output
+ runtimeClasspath += main.output + test.output
+ }
+}
+
+configurations {
+ integTestCompile.extendsFrom testCompile
+ integTestRuntime.extendsFrom testRuntime
+}
+
+
task integTest(type: Test) {
// dependsOn startApp
// finalizedBy stopApp
// mustRunAfter test
}
+
integTest.doFirst {
// It is required in order to run data bases in random ports.
// We need it for running tests from IDE and from command console but
buildBeforeUp = false
}
+// ************************************************************************************************************************
+
+
+
querydsl {
library = 'com.querydsl:querydsl-apt:4.1.3'
querydslSourcesDir = "$buildDir/generated-sources/querydsl"