All Downloads are FREE. Search and download functionalities are using the official Maven repository.

misk.gradle.schemamigrator.SchemaMigratorExtension.kt Maven / Gradle / Ivy

There is a newer version: 2024.09.20.215132-bd5c0c5
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy