develog

build.gradle 본문

Dev/gradle

build.gradle

냐옴 2020. 8. 4. 23:53

build.gradle (no dependencies)

plugins {

    id 'org.springframework.boot' version '2.3.2.RELEASE'

    id 'io.spring.dependency-management' version '1.0.9.RELEASE'

    id 'java'

}

 

group = 'com.example'

version = '0.0.1-SNAPSHOT'

sourceCompatibility = '11'

 

repositories {

    mavenCentral()

}

 

dependencies {

    implementation 'org.springframework.boot:spring-boot-starter'

    testImplementation('org.springframework.boot:spring-boot-starter-test') {

        exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'

    }

}

 

test {

    useJUnitPlatform()

}

 

 

build.gradle (with dependencies)

plugins {

    id 'org.springframework.boot' version '2.3.2.RELEASE'

    id 'io.spring.dependency-management' version '1.0.9.RELEASE'

    id 'java'

}

 

group = 'com.example'

version = '0.0.1-SNAPSHOT'

sourceCompatibility = '11'

 

configurations {

    compileOnly {

        extendsFrom annotationProcessor

    }

}

 

repositories {

    mavenCentral()

}

 

dependencies {

    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'

    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') {

        exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'

    }

}

 

test {

    useJUnitPlatform()

}

'Dev > gradle' 카테고리의 다른 글

[gradle] tomcat dependency exclude  (0) 2021.02.16
[gradle] local jar dependency 추가  (0) 2021.02.16
[gradle] command  (0) 2020.08.06
[gradle] p6spy  (0) 2020.02.08
[java] gradle  (0) 2019.11.25
Comments