I have a separate gradle script that is just adding spring-boot plugin. It looks like this:
buildscript { repositories { mavenLocal() mavenCe
This code works for me
plugins{ id 'org.springframework.boot' version '2.0.3.RELEASE' }