Open michael-tribe opened 4 months ago
@ellipsis-dev fix
:rocket: | This implementation plan was created by @ellipsis-dev |
---|
Tag me (@ellipsis-dev) in a comment with guidance if you want me to replan or to implement this plan.
apply
methodPath: buildSrc/src/main/java/org/springframework/boot/build/processors/AnnotationProcessorPlugin.java
Refactor apply
in buildSrc/src/main/java/org/springframework/boot/build/processors/AnnotationProcessorPlugin.java
to use Java 8 lambdas:
@Override
public void apply(Project project) {
project.getTasks().withType(Jar.class, jar -> project.afterEvaluate(evaluated -> {
jar.manifest(manifest -> {
Map<String, Object> attributes = new TreeMap<>();
attributes.put("Spring-Boot-Jar-Type", JAR_TYPE);
manifest.attributes(attributes);
});
}));
}
Repository: michael-tribe/spring-boot-fork
Questions? Check out our documentation. Leave :+1:/:-1: on this plan to give us feedback.
The current implementation of the AnnotationProcessorPlugin class in the Spring Boot build process can be optimized by using Java 8 features, such as lambda expressions and method references, to make the code more concise and readable.