Skip to content

denis-markushin/schemaspy-gradle-plugin

Repository files navigation

schemaspy-gradle-plugin

Gradle plugin that lets you generate database documentation using Schemaspy and Testcontainers

How to use 👣

  1. Add dependency:
    id("io.github.denis-markushin.schemaspy-plugin")
  2. Configure the plugin using extension.
    schemaspyConfig {
        dbName = "my_database"
        liquibaseChangelog = file("/path/to/file.yml")
        excludeTables = "(table1|table2)"
        outputDir = project.layout.buildDirectory.dir("schemaspy/sakila").get()
    }
  3. Execute gradle generateSchemaspyDocs task: gradle generateSchemaspyDocs
  4. Get output in gradle build/schemaspy/db/output folder. That`s it!

Contributing 🤝

Feel free to open an issue or submit a pull request for any bugs/improvements.

License 📄

This project is licensed under the MIT License - see the License file for details.