Skip to content

Define the classloader for FluentConfiguration #16947

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

Closed
wants to merge 2 commits into from
Closed

Define the classloader for FluentConfiguration #16947

wants to merge 2 commits into from

Conversation

Alan-Gomes
Copy link
Contributor

@Alan-Gomes Alan-Gomes commented May 22, 2019

The out of the box support for Flyway currently does not work with a custom class loader defined in ResourceLoader. Without this compatibility, Flyway will not be able to load scripts inside the resources folder. I experienced this issue when developing a custom starter which runs inside a personalized class loader.

@pivotal-issuemaster
Copy link

@Alan-Gomes Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@Alan-Gomes Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 22, 2019
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels May 22, 2019
@philwebb philwebb added this to the 2.2.x milestone May 22, 2019
@philwebb
Copy link
Member

Thanks for the PR. I think ideally we should also add some tests for this.

@Alan-Gomes
Copy link
Contributor Author

Alan-Gomes commented May 23, 2019

I wrote a test to verify this configuration, it should be ok now.

@wilkinsona wilkinsona self-assigned this May 29, 2019
@wilkinsona wilkinsona modified the milestones: 2.2.x, 2.2.0.M4 May 29, 2019
@wilkinsona
Copy link
Member

@Alan-Gomes Thanks very much for making your first contribution to Spring Boot. I have merged your changes into master along with a polish commit. The primary reason for the polish was to move away from using a mock ClassLoader as it caused the test to fail due to the mock not being able to find any migration scripts.

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

Successfully merging this pull request may close these issues.

5 participants