You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
Gradle plugin
What database are you using (type & version)?
MySQL 5.6.27
What operating system are you using?
MacOS X
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Created a custom Gradle task in the buildSrc directory that extends AbstractFlywayTask with Gradle 3.0. (Works fine in Gradle 2.13). I created a sample project to duplicate the issue, which can be found here: Gradle 3.0/FlywayDB 4.0.3 Issue
Ran the command:
./gradlew build
What did you expect to see?
Expected to be able to perform a Gradle build, including database migrations.
What did you see instead?
The build fails with an exception:
Dustins-MBP:gradle-flywaydb-issue djohnson$ ./gradlew build
Listening for transport dt_socket at address: 5006
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileGroovy'.
> Unable to load class org.flywaydb.gradle.task.AbstractFlywayTask due to missing dependency org/gradle/api/internal/DynamicObject
The text was updated successfully, but these errors were encountered:
From the same issue posted on the Gradle forums, it appears the solution may be to simply release another version using Gradle 3 to clear up the bytecode incompatibiility:
axelfontaine
changed the title
Unable to create custom Gradle task extending AbstractFlywayTask with Gradle 3.0/FlywayDB 4.0.3
Make Gradle 3.0 the new minimum supported version
Nov 30, 2017
What version of Flyway are you using?
4.0.3 (also tried 4.0.2)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
Gradle plugin
What database are you using (type & version)?
MySQL 5.6.27
What operating system are you using?
MacOS X
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Created a custom Gradle task in the buildSrc directory that extends AbstractFlywayTask with Gradle 3.0. (Works fine in Gradle 2.13). I created a sample project to duplicate the issue, which can be found here: Gradle 3.0/FlywayDB 4.0.3 Issue
Ran the command:
./gradlew build
What did you expect to see?
Expected to be able to perform a Gradle build, including database migrations.
What did you see instead?
The build fails with an exception:
The text was updated successfully, but these errors were encountered: