Define additional properties for buildInfo

Hi,
I would like to add additional properties to the buildInfo task
as described here: Spring Boot Gradle Plugin Reference Guide

springBoot {
	buildInfo {
		properties {
			additional = [
				'a': 'alpha',
				'b': 'bravo'
			]
		}
	}
}

When I add this code to my Jmix build.gradle I get this error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'fm'.
> Cannot add task 'bootBuildInfo' as a task with that name already exists.

How is it possible to add additional properties to buildInfo?
Thanks!

Hi Joerg,

The following works for me:

afterEvaluate {
    tasks.findByName('bootBuildInfo').configure {
        properties {
            additional = [
                    'a': 'alpha',
                    'b': 'bravo'
            ]
        }
    }
}