Skip to content

Commit

Permalink
SHIBUI-2393
Browse files Browse the repository at this point in the history
Change to build process to allow for different application.yml files
  • Loading branch information
chasegawa committed Dec 1, 2022
1 parent 3bd68f3 commit 4e26435
Show file tree
Hide file tree
Showing 4 changed files with 469 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ processResources.dependsOn(':ui:npm_run_buildProd')

jar {
enabled = true
dependsOn 'copyApplicationYAML'
}

task copyApplicationYAML(type: Copy) {
if ( "${project.'use.release.app.yml'}".toBoolean() ) {
from 'src/main/app-resources/release.yml'
into 'src/main/resources'
rename { 'application.yml' }
}
else {
from 'src/main/app-resources/default.yml'
into 'src/main/resources'
rename { 'application.yml' }
}
}

//Integration of the frontend and backend into the build to have all of the UI resources available in the app's executable war
Expand Down
File renamed without changes.
Loading

0 comments on commit 4e26435

Please sign in to comment.