Update flyway from 3.0 to 3.1

Includes an important fix to restore JDK 6 compatibility with the Gradle plugin, see here: https://github.com/flyway/flyway/issues/779