Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Resets Flyway version to non-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ayedo committed Apr 23, 2019
1 parent 11b545a commit 9bd0569
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 56 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ The plugin has been tested with Version 18.06.1-ce-mac73 (26764).

Two migration engines are supported:

- Flyway (version '6.0.0-beta')
- Flyway (version '5.2.4')
- Liquibase (version '3.6.3')

Flyway is fully supported.
Flyway is fully supported. Please note that version 3.1.0 of the plugin used the Flyway version '6.0.0-beta'. This was a mistake, and has been
reset to Flyway 5.2.4 in version 3.2.0. Because of a Flyway related problem, this means that Postgres 11 is currently unsupported when using Flyway.

__For Liquibase there are limitations:__

- You cannot choose the name of your database change log. __It has to be named 'databaseChangeLog'__. The file ending does not matter, and can be any of the supported file types.
- All migration files need be located within the configured migrations folders (see section 'Configuration'). This is required for incremental build support.

All databases which you can run in a Docker container, and for which a JDBC driver can be provided, are supported. The plugin has been successfully tested with Postgres 11.2, and MariaDB 10.2.
All databases which you can run in a Docker container, and for which a JDBC driver can be provided, are supported. The plugin has been successfully tested with Postgres 9.6, and MariaDB 10.2.

Due to backwards incompatible changes in the API, __no jooq generator version older than 3.11.0 is currently supported__.

Expand All @@ -50,7 +51,7 @@ Due to backwards incompatible changes in the API, __no jooq generator version ol
Add the following to your *build.gradle* plugin configuration block:

plugins {
id 'ch.ayedo.jooqmodelator' version '3.1.0'
id 'ch.ayedo.jooqmodelator' version '3.2.0'
}

## Configuration
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

apply plugin: 'java-gradle-plugin'

project.ext.version = '3.1.0'
project.ext.version = '3.2.0'

group 'ch.ayedo'
version project.ext.version
Expand All @@ -25,12 +25,15 @@ dependencies {
compile('org.jetbrains.kotlin:kotlin-stdlib-jdk8')
compile('net.jodah:failsafe:1.1.0')
compile('com.spotify:docker-client:8.15.2')
compile('org.flywaydb:flyway-core:6.0.0-beta')
compile('org.flywaydb:flyway-core:5.2.4')
compile('org.liquibase:liquibase-core:3.6.3') {
exclude group: 'ch.qos.logback', module: 'logback-classic'
}
compile('org.slf4j:slf4j-simple:1.7.25')

compile('com.sun.xml.bind:jaxb-impl:2.2.11')
compile('com.sun.xml.bind:jaxb-core:2.2.11')

testCompile('org.junit.jupiter:junit-jupiter-api:5.2.0')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.2.0')
}
Expand Down
50 changes: 0 additions & 50 deletions src/test/kotlin/ch/ayedo/jooqmodelator/IntegrationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,56 +57,6 @@ class IntegrationTest {

}

@Test
fun flywayPostgres11() {

val jooqConfig = createJooqConfig(POSTGRES)

val config = Configuration(
dockerConfig = DockerConfig(
tag = "postgres:11",
env = listOf("POSTGRES_DB=postgres", "POSTGRES_USER=postgres", "POSTGRES_PASSWORD=secret"),
portMapping = PortMapping(5432, 5432)),
healthCheckConfig = HealthCheckConfig(),
migrationConfig = MigrationConfig(engine = MigrationEngine.FLYWAY, migrationsPaths = getMigrationPaths("/migrations", "/migrationsB")),
jooqConfigPath = jooqConfig.toPath()
)

createBuildFile(config)

assertBuildOutcome(SUCCESS)

assertFileExists("${tempDir.root.absolutePath}$jooqPackagePath/tables/Tab.java")

assertFileExists("${tempDir.root.absolutePath}$jooqPackagePath/tables/TabTwo.java")

}

@Test
fun flywayKartozaPostgis() {

val jooqConfig = createJooqConfig(POSTGRES, user = "docker", password = "docker", databaseName = "gis", port = 25432)

val config = Configuration(
dockerConfig = DockerConfig(
tag = "kartoza/postgis:10.0-2.4",
env = listOf("POSTGRES_DBNAME=gis", "POSTGRES_USER=docker", "POSTGRES_PASSWORD=docker"),
portMapping = PortMapping(25432, 5432)),
healthCheckConfig = HealthCheckConfig(),
migrationConfig = MigrationConfig(engine = MigrationEngine.FLYWAY, migrationsPaths = getMigrationPaths("/migrations", "/migrationsB")),
jooqConfigPath = jooqConfig.toPath()
)

createBuildFile(config)

assertBuildOutcome(SUCCESS)

assertFileExists("${tempDir.root.absolutePath}$jooqPackagePath/tables/Tab.java")

assertFileExists("${tempDir.root.absolutePath}$jooqPackagePath/tables/TabTwo.java")

}

@Test
fun liquibasePostgres() {

Expand Down

0 comments on commit 9bd0569

Please sign in to comment.