You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.3-SNAPSHOT'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
Configuring compileOnly to extend from annotationProcessor means that org.projectlombok:lombok doesn't need to be declared in both compileOnly and annotationProcessor.
The text was updated successfully, but these errors were encountered:
Example
build.gradle
script:Configuring
compileOnly
to extend fromannotationProcessor
means thatorg.projectlombok:lombok
doesn't need to be declared in bothcompileOnly
andannotationProcessor
.The text was updated successfully, but these errors were encountered: