I have build.gradle
like this and it works :
plugins {
id 'org.springframework.boot' version '2.5.8' apply false
...
}
...
springBoot {
mainClassName = 'com.mir3.service.contactfileparser.Main'
}
but if I upgrade spring boot version to 2.6.2 it fails with error:
plugins {
id 'org.springframework.boot' version '2.6.2' apply false
...
}
...
springBoot {
mainClassName = 'com.mir3.service.contactfileparser.Main'
}
Error text is:
A problem occurred evaluating root project 'myProject'.
> Could not set unknown property 'mainClassName' for extension 'springBoot' of type org.springframework.boot.gradle.dsl.SpringBootExtension.
How can I fix it ? What is the proper way to migrate from 2.5.8 to 2.6.2 ?