Skip to content

Gradle 6.x warning when using BootJar task #18326

@rpalcolea

Description

@rpalcolea

Hi folks,

While doing some Gradle 6.x nightly release exploration found the following warning when using spring-boot-gradle-pliugin

java.lang.IllegalArgumentException: Deprecation warnings were found (Set the ignoreDeprecations system property during the test to ignore):
 - Property 'bootInf' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.

It appears to be related to https://github.com/spring-projects/spring-boot/blob/d86c72bf73f58811b992e117aff2196b6bba6d9b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootJar.java#L44

One of the Gradle 6.x changes is that validateTaskProperties will now fail builds for plugins where the tasks are missing input/output annotations for properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions