inblog logo
|
devleekangho
    기술정리

    [기술 정리] 10. gradle 빌드 툴 사용 시 라이브러리 수동 추가 방법

    KangHo Lee's avatar
    KangHo Lee
    Nov 26, 2024
    [기술 정리] 10. gradle 빌드 툴 사용 시 라이브러리 수동 추가 방법
    Contents
    build.gradle 파일

    build.gradle 파일

    dependencies { // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-aop implementation group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version: '3.3.5' // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '3.3.5' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-mustache' implementation 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.projectlombok:lombok' developmentOnly 'org.springframework.boot:spring-boot-devtools' runtimeOnly 'com.h2database:h2' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' }

    1. mvnrepository에서 gradle 내용을 복사, dependencies에 추가

    2. dependencies 옆의 Edit Starters…(Add Staters…)버튼을 클릭해서 추가하는 방법도 있습니다.

    notion image
    💡
    group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '3.3.5’
    → 'org.springframework.boot:spring-boot-starter-validation’
    → 이렇게 작성할 경우 spring에서 자동으로 스프링 버전에 맞춰 줍니다.
     
    Share article
    Contents
    build.gradle 파일

    devleekangho

    RSS·Powered by Inblog