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

Update server migrations doc #5117

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Update server migrations doc #5117

merged 1 commit into from
Apr 4, 2024

Conversation

starkej2
Copy link
Contributor

@starkej2 starkej2 commented Apr 3, 2024

The example migrationOutputDirectory configuration in migrations_server.md is using Project.getBuildDir(), which was deprecated in Gradle 8.3.

This PR updates that example to use the recommended ProjectLayout.getBuildDirectory() method instead. Note: getBuildDirectory() was introduced in Gradle 4.1.

@@ -8,7 +8,7 @@ services to read from:
sqldelight {
databases {
Database {
migrationOutputDirectory = file("$buildDir/resources/main/migrations")
migrationOutputDirectory = layout.buildDirectory.dir("resources/main/migrations")
Copy link
Contributor Author

@starkej2 starkej2 Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to do so in a follow-up PR!

Copy link
Collaborator

@dellisd dellisd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -8,7 +8,7 @@ services to read from:
sqldelight {
databases {
Database {
migrationOutputDirectory = file("$buildDir/resources/main/migrations")
migrationOutputDirectory = layout.buildDirectory.dir("resources/main/migrations")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to do so in a follow-up PR!

@dellisd dellisd merged commit 4051c34 into sqldelight:master Apr 4, 2024
7 checks passed
@starkej2 starkej2 deleted the update-migration-doc branch April 4, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants