Spring Boot build.gradle 정리

spring initializer에서 생성하는 기본값

plugins {
    id 'java'
    id 'org.springframework.boot' version '3.3.7-SNAPSHOT'
    id 'io.spring.dependency-management' version '1.1.6'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(17)
    }
}

repositories {
    mavenCentral()
    maven { url 'https://repo.spring.io/snapshot' }
}

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

tasks.named('test') {
    useJUnitPlatform()
}

org.springframework.boot:spring-boot-starter-web : 웹개발 기본
org.projectlombok:lombok : lombok
org.springframework.boot:spring-boot-starter-data-jpa : JPA
org.springframework.boot:spring-boot-starter-mustache : mustache(template engine)
org.springframework.boot:spring-boot-starter-tomcat : tomcat
org.springframework.boot:spring-boot-starter-oauth2-client : oauth2
org.springframework.session:spring-session-jdbc : session
org.mariadb.jdbc:mariadb-java-client : mariadb
com.mysql:mysql-connector-j : mysql
org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3 : mybatis

Leave a Reply