misk.gradle.schemamigrator.SchemaMigratorExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of misk-schema-migrator-gradle-plugin Show documentation
Show all versions of misk-schema-migrator-gradle-plugin Show documentation
Open source application container in Kotlin
package misk.gradle.schemamigrator
import jakarta.inject.Inject
import org.gradle.api.file.DirectoryProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputDirectory
import org.gradle.api.tasks.Optional
abstract class SchemaMigratorExtension @Inject constructor(objects: ObjectFactory) {
@get:Input
abstract val database: Property
@get:Input
@get:Optional
abstract val host: Property
@get:Input
@get:Optional
abstract val port: Property
@get:Input
val databaseType: Property = objects.property(String::class.java).convention("MYSQL")
@get:Input
abstract val username: Property
@get:Input
abstract val password: Property
@get:InputDirectory
abstract val migrationsDir: DirectoryProperty
}