μŠ€ν”„λ§λΆ€νŠΈ 2

[Gradle] implementation, runtimeOnly, compileOnly 차이점

spring boot ν”„λ‘œμ νŠΈμ—μ„œ DB μ„ΈνŒ…μ„ ν•˜λ‹€κ°€ μ•„λž˜ gradle 섀정에 λŒ€ν•΄ 의문이 생겼닀. implementation 'org.postgresql:postgresql' runtimeOnly 'org.postgresql:postgresql' implementation은 자주 μ“°λŠ”λ° runtimeOnly와 compileOnly에 λŒ€ν•œ λͺ…ν™•ν•œ μ‚¬μš© μ‹œμ μ΄ κΆκΈˆν•΄μ‘Œλ‹€. Classpath ClasspathλŠ” ν΄λž˜μŠ€λ‚˜ jar 파일이 μ‘΄μž¬ν•˜λŠ” μœ„μΉ˜μ΄λ‹€. 크게 complileClasspath, runtimeClasspath둜 λ‚˜λˆ„μ–΄μ Έ μžˆλ‹€. compileClasspathλŠ” μ—λŸ¬μ—†μ΄ μ»΄νŒŒμΌμ„ ν•˜κΈ° μœ„ν•΄ ν•„μš”ν•œ ν΄λž˜μŠ€μ™€ jar 파일이 μœ„μΉ˜ν•œλ‹€. runtimeClasspathλŠ” μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ μ •μƒμ μœΌλ‘œ μ‹€ν–‰λ˜κΈ° μœ„..

[SpringBoot] Swagger μ„€μ •ν•˜κΈ°

dependency μΆ”κ°€ λ¨Όμ € μŠ€μ›¨κ±° λ””νŽœλ˜μ‹œλ₯Ό μΆ”κ°€ν•œλ‹€. build.gradle νŒŒμΌμ— 라이브러리λ₯Ό μΆ”κ°€ν•΄μ€€λ‹€. ν•„μš”ν•œ 라이브러리의 λ””νŽœλ˜μ‹œλŠ” ν•˜μœ„ λ§ν¬μ—μ„œ μ‰½κ²Œ 찾을 수 μžˆλ‹€. https://mvnrepository.com/artifact/io.springfox/springfox-swagger2/2.9.2 Maven Repository: io.springfox » springfox-swagger2 » 2.9.2 mvnrepository.com ... repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springfra..