Gradle: Unable to instantiate JDBC driver declared as buildscript dependency #1539
What version of Flyway are you using?
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
What database are you using (type & version)?
What operating system are you using?
MariaDB server on CentOS, grable build on Windows 8
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
trying to run flywayInfo, flywayMigrate tasks. It worked with all Flyway versions from 4.0 to 4.1.0 and now fails with 4.1.1
What did you expect to see?
What did you see instead?
Build fails with "Unable to instantiate JDBC driver: com.mysql.cj.jdbc.Driver : com.mysql.cj.jdbc.Driver".
This looks very similar to the issue #1527 , the difference is that we're using mariadb jdbc driver, and dependence is declared via buildscript->dependencies:
The text was updated successfully, but these errors were encountered:
So why you close this issue? In your commit there is nothing about the buildscript-block and loading any classpath dependencies from it. It works not with 5.1.4. And not all project have compile, runtime or other java dependency configuration in gradle. Only java based project have these scope by default. So please adjust your Docu or fix this bug or provide some comment what users should do if they upgrade...