Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debloat flyway core #3893

Open
AB-xdev opened this issue May 14, 2024 · 0 comments
Open

Debloat flyway core #3893

AB-xdev opened this issue May 14, 2024 · 0 comments

Comments

@AB-xdev
Copy link

AB-xdev commented May 14, 2024

Which version and edition of Flyway are you using?

10.12.0 (OpenSource edition)

If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)

yes

Enviroment

Flyway-Mysql
Spring Boot 3

Description

While upgrading to 10.12.0 I noticed a lot of unused classes and dependencies are inside flyway core.

  • Dependencies:
  • Classes and packages:
    • various telemetry classes that are not used
    • the complete reporting subsystem inside org.flywaydb.core.internal.reports, parts of org.flywaydb.core.api.output (e.g. DashboardRenderer) and the corresponding assets/report folder
    • org.flywaydb.core.internal.database.sqlite
    • org.flywaydb.core.internal.database.h2
    • org.flywaydb.core.internal.database.base.TestContainersDatabaseType
    • org.flywaydb.core.internal.authentication
    • a lot of classes inside org.flywaydb.core.internal.license e.g. EncryptionUtils
    • Many related classes inside org.flywaydb.core.internal.util e.g. LocalDateTimeSerializer
    • Many related exception classes e.g. org.flywaydb.core.internal.license.FlywayTrialExpiredException

I would recommend to remove these classes from the core library and move them to the correspoding existing libs or split them into new, dedicated libs.
This way the developers can declare/use them if required or at least exclude them in a easier way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant