-
Notifications
You must be signed in to change notification settings - Fork 515
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
Conversation
@@ -8,7 +8,7 @@ services to read from: | |||
sqldelight { | |||
databases { | |||
Database { | |||
migrationOutputDirectory = file("$buildDir/resources/main/migrations") | |||
migrationOutputDirectory = layout.buildDirectory.dir("resources/main/migrations") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if I should also update this in the gradle plugin?
There was a problem hiding this comment.
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!
There was a problem hiding this 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") |
There was a problem hiding this comment.
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!
The example
migrationOutputDirectory
configuration inmigrations_server.md
is usingProject.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.