πŸ’»
Albert's Til
GitHub
  • 맀일맀일 μ‘°κΈˆμ”© μ„±μž₯ν•˜κΈ°
    • README
    • CS
      • Network
      • HTTP
        • NO-CACHE
      • 였λ₯˜ μ½”λ“œ
      • ORM 도ꡬ
      • Design Pattern
        • CQRS Pattern
          • Event Sourcing and CQRS pattern
        • Builder Pattern
    • DB
      • MySQL
        • Timeline
        • Pagination
        • Index
        • Database Performance Optimization Strategies
        • B+ tree
        • MySQL Connectors VS MySQL Shell(Scripting) VS MySQL Workbench
        • MySQL Storage Engine Architecture
      • Normalization & Denormalization
      • JPA
        • @Transactional
        • Why JPA?
        • About JPA
        • N+1 Issue
        • Index
        • ElementCollection&CollectionTable
        • orphanRemoval
        • CascadeType
        • Use Subselect
        • Dynamic Instance Creation
        • Paging
        • Order
        • Spefication
        • mappedBy
      • MongoDB
        • ObjectId
      • Why MySQL?
      • ACID properties of transactions
      • Between JPA and JDBC
      • Identifiers in Hibernate/JPA
    • Java
      • Jackson de/serialize
      • Collections.singletonList() vs List.of()
      • Manage dependencies in Gradle
      • Logging Level
      • Bean Validation
      • JVM Internals
        • Threads
          • Frame
        • Shared Between Threads
          • Classloader
            • Class Loader Hierarchy
            • Loading Linking Initialization
      • Java Collection Framework
      • Annotation
      • Generic
      • λ””λ―Έν„° 법칙
    • Spring
      • Caching
      • Spring Integration Overview
        • ThreadPollTaskExecutor
        • Messaging Bridge
        • Channel Adapter
        • Poller
        • Configuration and @EnableIntegration
        • Message Endpoints
        • Message Channels
      • HATEOAS
      • @Autowired vs Constructor Dependency Injection
      • Spring Security
        • JWT 토큰 μ‚¬μš©ν•œ 인가
        • OAuth 2 Login
        • OAuth 2 인증
        • 인가
        • 인증
        • PasswordEncoder
      • IoC Container
      • Filter,Interceptor,AOP,Argument Resolver
      • Spring Annotation
      • About Spring
    • Kafka
      • Error Channel
    • Infra
      • Scale Up || Scale Out
      • Docker
        • Dockerfile
        • Docker Hub Deploy
        • Command
      • Cloud μœ ν˜•
        • Infrastructure as a Service
        • Platform as a Service
        • Software as a Service
      • 무쀑단 배포
        • μ—”μ§„μ—‘μŠ€(Nginx)
      • μ½”λ“œ μžλ™ 배포
        • Technical
      • AWS EC2
        • PEM(Privacy Enhanced Mail) ν‚€
      • AWS RDS
      • AWS S3
    • CodeSquad
      • Spring Boot Project 1μ£Όμ°¨ 회고
      • Spring Boot Project 2μ£Όμ°¨ 회고
      • Spirng Boot Project 3μ£Όμ°¨ 회고
      • Spring Boot Project 4μ£Όμ°¨ 회고
    • Foody Moody ν”„λ‘œμ νŠΈ
      • Query Performance Comparison
      • HeartCount Asynchronous Issue
      • DeferredResult
      • ResponseBodyEmitter
      • SseEmitter (Spring)
      • Server-Sent Events (SSE)
      • 기술 μŠ€νƒ 적용 이유
      • NO-CACHE(HTTP)
      • Transactional
    • DDD
      • AggregateId
    • Test
      • RestAssured
    • Coding and Algorithmic Problems
      • 819. Most Common Word
      • 344. Reverse String
      • 125. Valid Palindrome
      • 937. Reorder Data in Log Files
    • Node
      • Async... Await...
      • Custom Transactional Decorator Challenger
    • Python
      • Python Basic Grammar
        • Comments and Input/Output
        • Variable
        • Data type
        • Operations and syntax
        • List,Tuple,Dictionary,Set
        • Function
        • Conditional statement
        • Loop
    • HTML
      • HTML Basic
      • HTML Basic Tags
      • HTML Form Tags
      • HTML Table Tags
    • CSS
      • CSS Basic
      • CSS Practice
Powered by GitBook
On this page
  • 1.implementation ꡬ성:
  • 2.runtimeOnly ꡬ성:
  • 3.compileOnly:
  • 4.testImplementation:
  • 5.testRuntimeOnly:

Was this helpful?

  1. 맀일맀일 μ‘°κΈˆμ”© μ„±μž₯ν•˜κΈ°
  2. Java

Manage dependencies in Gradle

1.implementation ꡬ성:

  • implementation ꡬ성은 ν”„λ‘œμ νŠΈμ˜ μ†ŒμŠ€ μ½”λ“œμ— μ§μ ‘μ μœΌλ‘œ μ˜μ‘΄ν•˜λŠ” 쒅속성을 μ„ μ–Έν•˜λŠ” 데 μ‚¬μš©λ©λ‹ˆλ‹€.

  • 이 κ΅¬μ„±μœΌλ‘œ μ„ μ–Έλœ 쒅속성은 컴파일 μ‹œκ°„μ— ν•„μš”ν•˜λ©°, ν”„λ‘œμ νŠΈμ˜ 클래슀패슀(Classpath)에 ν¬ν•¨λ©λ‹ˆλ‹€.

  • **implementation**으둜 μ„ μ–Έλœ 쒅속성은 ν•΄λ‹Ή ν”„λ‘œμ νŠΈμ˜ API λ˜λŠ” 라이브러리둜 μ‚¬μš©λ˜λŠ” 경우 주둜 μ‚¬μš©λ©λ‹ˆλ‹€.

2.runtimeOnly ꡬ성:

  • runtimeOnly ꡬ성은 ν”„λ‘œμ νŠΈμ˜ λŸ°νƒ€μž„ μ‹œμ—λ§Œ ν•„μš”ν•œ 쒅속성을 μ„ μ–Έν•˜λŠ” 데 μ‚¬μš©λ©λ‹ˆλ‹€.

  • 이 κ΅¬μ„±μœΌλ‘œ μ„ μ–Έλœ 쒅속성은 컴파일 μ‹œκ°„μ—λŠ” ν•„μš”ν•˜μ§€ μ•ŠμœΌλ©°, ν”„λ‘œμ νŠΈμ˜ μ‹€ν–‰ν™˜κ²½(Runtime Environment)μ—μ„œλ§Œ ν•„μš”ν•©λ‹ˆλ‹€.

  • **runtimeOnly**으둜 μ„ μ–Έλœ 쒅속성은 ν•΄λ‹Ή ν”„λ‘œμ νŠΈμ˜ μ‹€ν–‰ν™˜κ²½μ—μ„œλ§Œ μ‚¬μš©λ˜λŠ” 경우 주둜 μ‚¬μš©λ©λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄, μ„œλ²„ ν™˜κ²½μ—μ„œ 싀행될 λ•Œ ν•„μš”ν•œ 라이브러리 등이 이에 ν•΄λ‹Ήν•©λ‹ˆλ‹€.

3.compileOnly:

  • compileOnly ꡬ성은 컴파일 μ‹œμ—λ§Œ ν•„μš”ν•œ 쒅속성을 μ„ μ–Έν•˜λŠ” 데 μ‚¬μš©λ©λ‹ˆλ‹€.

  • 이 κ΅¬μ„±μœΌλ‘œ μ„ μ–Έλœ 쒅속성은 컴파일 μ‹œμ— ν•„μš”ν•˜μ§€λ§Œ, λŸ°νƒ€μž„ μ‹œμ—λŠ” ν•„μš”ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

  • 주둜 μΈν„°νŽ˜μ΄μŠ€λ‚˜ μ• λ…Έν…Œμ΄μ…˜κ³Ό 같이 컴파일 μ‹œμ—λ§Œ ν•„μš”ν•œ κ²½μš°μ— μ‚¬μš©λ©λ‹ˆλ‹€.

4.testImplementation:

  • testImplementation ꡬ성은 ν…ŒμŠ€νŠΈ μ½”λ“œμ—λ§Œ ν•„μš”ν•œ 쒅속성을 μ„ μ–Έν•˜λŠ” 데 μ‚¬μš©λ©λ‹ˆλ‹€.

  • 이 κ΅¬μ„±μœΌλ‘œ μ„ μ–Έλœ 쒅속성은 ν…ŒμŠ€νŠΈ μ½”λ“œ 컴파일 및 싀행에 ν•„μš”ν•œ μ’…μ†μ„±μœΌλ‘œ, 주둜 ν…ŒμŠ€νŠΈ ν”„λ ˆμž„μ›Œν¬λ‚˜ ν…ŒμŠ€νŠΈμš© 라이브러리 등이 ν¬ν•¨λ©λ‹ˆλ‹€.

5.testRuntimeOnly:

  • testRuntimeOnly ꡬ성은 ν…ŒμŠ€νŠΈ μ½”λ“œμ˜ λŸ°νƒ€μž„ ν™˜κ²½μ—λ§Œ ν•„μš”ν•œ 쒅속성을 μ„ μ–Έν•˜λŠ” 데 μ‚¬μš©λ©λ‹ˆλ‹€.

  • 이 κ΅¬μ„±μœΌλ‘œ μ„ μ–Έλœ 쒅속성은 ν…ŒμŠ€νŠΈ μ‹€ν–‰ μ‹œμ—λ§Œ ν•„μš”ν•˜λ©°, ν…ŒμŠ€νŠΈ ν™˜κ²½μ— λŒ€ν•œ λŸ°νƒ€μž„ μ’…μ†μ„±μœΌλ‘œ 주둜 μ‚¬μš©λ©λ‹ˆλ‹€.

Last updated 1 year ago

Was this helpful?