Unable to pass PluginExtension data to plugin publish

I had a working plugin with gradle 3.4.1. I upgraded to gradle 5.2.1 to support SpringBoot 2 projects.
When attempting to then run the publishToMaven task that worked on the previous error, I got an error - gradle Execution failed for task ':generatePomFileForMavenJavaPublication
In digging down further, I found that the PluginExtension values that previously were available to the publish task in 3.4.1 are now null.

Plugin:
void apply(Project project) {

    project.plugins.apply JavaPlugin
    project.plugins.apply MavenPublishPlugin

    project.extensions.create('MyBuildInfo', MyBuildPluginExtension)
    ....
    project.publishing { 
        repositories {
        ...
        }
        publications {
                mavenJava(MavenPublication) {
                    groupId = project.MyBuildInfo.group
                    artifactId = project.MyBuildInfo.artifactName
                    from project.components.java
                }
            }

In the calling project:

apply plugin: 'MyBuild'

MyBuildInfo {
    type="bootjar"
    group="com.my.group"
    artifactName=rootProject.name
    majorVersion=1
    minorVersion = 0
}

When I run the task Publish I notice that in Gradle 5.2.1 project.MyBuildInfo.group is null

My solution for this was to use the .ext. properties.
So
project.ext.type=“bootjar”
project.ext.artifactName=rootProject.name
project.ext.majorVersion=1
project.ext.minorVersion=0

group=“com.my.group” – group is special as it is globally available it seems.

I then changed the plugin to just reference the properties.