lombok + gradle 설정하기

build.gradle

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
buildscript {
ext {
springBootVersion = '2.0.3.RELEASE'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("io.franzbecker:gradle-lombok:1.14") //추가
}
}


...
...


apply plugin: 'io.franzbecker.gradle-lombok' //추가


...
...


dependencies {
compileOnly('org.projectlombok:lombok:1.18.0')//
}

Comment and share

  • page 1 of 1
Author's picture

Owen Q

author.bio


author.job


Seoul