Class FlywayExtension
java.lang.Object
net.ltgt.gradle.flyway.FlywayExtension
The extension to configure all Flyway tasks in a central place.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdditional configuration properties to be merged with theconfiguration file(overriding it).abstract org.gradle.api.file.RegularFilePropertyThe Flyway configuration file (must be a Java properties file encoded in UTF-8)abstract org.gradle.api.file.ConfigurableFileCollectionThe directories containing migration scripts.abstract org.gradle.api.provider.Property<String> The password to use to connect to the database.abstract org.gradle.api.provider.Property<String> getUrl()The jdbc url to use to connect to the database.abstract org.gradle.api.provider.Property<String> getUser()The user to use to connect to the database.
-
Constructor Details
-
FlywayExtension
public FlywayExtension()
-
-
Method Details
-
getConfigurationFile
public abstract org.gradle.api.file.RegularFileProperty getConfigurationFile()The Flyway configuration file (must be a Java properties file encoded in UTF-8)When the
javaplugin is applied, it defaults to thedb/flyway.conffrom the main source set's resources, after it has been processed by theprocessResourcestask. -
getConfiguration
Additional configuration properties to be merged with theconfiguration file(overriding it). -
getMigrationLocations
public abstract org.gradle.api.file.ConfigurableFileCollection getMigrationLocations()The directories containing migration scripts.When the
javaplugin is applied, it defaults to thedb/migration/from the main source set's resources, after it has been processed by theprocessResourcestask. -
getUrl
The jdbc url to use to connect to the database. -
getUser
The user to use to connect to the database. -
getPassword
The password to use to connect to the database.
-