mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 20:18:34 +02:00
Add generateSqlSchema as a build task (#454)
This commit is contained in:
parent
ae17b0fc6b
commit
0b8399c5d6
1 changed files with 11 additions and 0 deletions
|
@ -786,6 +786,17 @@ createToolTask(
|
|||
'google.registry.tools.DevTool',
|
||||
sourceSets.nonprod)
|
||||
|
||||
project.tasks.create('generateSqlSchema', JavaExec) {
|
||||
classpath = sourceSets.nonprod.runtimeClasspath
|
||||
main = 'google.registry.tools.DevTool'
|
||||
args = [
|
||||
'-e', 'alpha',
|
||||
'generate_sql_schema', '--start_postgresql', '-o',
|
||||
"${rootProject.projectRootDir}/db/src/main/resources/sql/schema/" +
|
||||
"db-schema.sql.generated"
|
||||
]
|
||||
}
|
||||
|
||||
task generateGoldenImages(type: FilteringTest) {
|
||||
tests = ["**/webdriver/*"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue