Tech/Gradle2 git submodule 추가후 빌드시 resources 폴더에 yml 추가 구글링해서 조사해보면 설정방법은 많이 나오니 생략.. 내가 2~3 시간째 삽질한걸 기록 processResources.dependsOn('copySecret') task copySecret(type: Copy) { from './submodule/application-aws-s3.yml' //submoduole에 추가한 노출되면 안되는 파일 into './src/main/resources' //build시 from에 지정한 경로의 파일을 복사할 위치 } 계속 구글링 하다보면 여기까지 설정한 자신을 볼 수 있다. 문제는 gradle에서 아무리 build하고 jar파일을 까봐도 yml이 없었음;; gradle을 리로드 하면 task {작업명} 으로 입력한 copySecret가 other 쪽에 추가된걸 확인할.. Tech/Gradle 2021. 12. 18. SpirngBoot 기준 Gradle 멀티 모듈 세팅 gradle init settings.gradle 설정 /* * This file was generated by the Gradle 'init' task. * * The settings file is used to specify which projects to include in your build. * * Detailed information about configuring a multi-project build in Gradle can be found * in the user manual at https://docs.gradle.org/6.8.3/userguide/multi_project_builds.html */ rootProject.name = 'security' ["comp", "web", "s.. Tech/Gradle 2021. 12. 17. 이전 1 다음