Skip to content

Commit

Permalink
add env in jooq gradle for issue #722 (#735)
Browse files Browse the repository at this point in the history
Co-authored-by: Santosh Arumugam <sanarumu@publicisgroupe.net>
Co-authored-by: PeeAyBee <pavel_bortnik@epam.com>
  • Loading branch information
3 people committed Mar 13, 2024
1 parent 57e5890 commit 5d21e14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jooq.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jooq {
}
database {
name = 'org.jooq.meta.postgres.PostgresDatabase'
inputSchema = 'public'
inputSchema = (hasDBSchema ? getProperty('DB_SCHEMA_POSTGRES') : 'public')
// ...
excludes = 'batch_.*|schema_migrations'
}
Expand Down
6 changes: 4 additions & 2 deletions project-properties.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ project.ext {
publishRepo = "https://maven.pkg.github.com/reportportal/commons-dao"
dependencyRepos = ["commons", "commons-rules", "commons-model", "commons-bom"]
releaseMode = project.hasProperty("releaseMode")
scriptsUrl = commonScriptsUrl + (releaseMode ? getProperty('scripts.version') : 'master')
migrationsUrl = migrationsScriptsUrl + (releaseMode ? getProperty('migrations.version') : 'feature/settings')
hasDBSchema = project.hasProperty("DB_SCHEMA_POSTGRES")
scriptsUrl = commonScriptsUrl + (releaseMode ? getProperty('scripts.version') : 'develop')
migrationsUrl = migrationsScriptsUrl + (releaseMode ? getProperty('migrations.version') : 'develop')

//TODO refactor with archive download
testScriptsSrc = [
(migrationsUrl + '/migrations/0_extensions.up.sql') : 'V001__extensions.sql',
Expand Down

0 comments on commit 5d21e14

Please sign in to comment.