Spring
[Spring] 프로젝트 모듈로 구현시 templates 사용법 - Gradle
brightGarden02
2024. 11. 6. 13:20
메인 모듈에 있는 build.gradle이다. 다른 모듈에 있는 templates 디렉토리를 사용하고자 한다.
dependencies {
implementation project(':file-service')
implementation project(':domain')
implementation project(':store')
}
메인 모듈에 있는 build.gradle에 다음 코드를 추가하면 된다.
task copyTemplates(type: Copy) {
from(project(':file-service').file('src/main/resources/templates'))
into 'src/main/resources/templates'
}
processResources.dependsOn(copyTemplates)