그래들
-
Intellij에서 gradle profile 적용 방법Programming 2020. 10. 12. 10:27
1. build.gradle ext.profile = (!project.hasProperty('profile') || !profile) ? 'local' : profile sourceSets { main { resources { srcDirs "src/main/resources", "src/main/resources-${profile}" } } } 2. resources 구조 resources - application.yml - logback.xml resources-dev - application.yml - logback.xml resources-local - application.yml - logback.xml resources-opr - application.yml - logback.xml reso..