Application plugin fails with missing baseDir

Gradle 5.0

ran ‘gradle build’

Error:

Could not get unknown property ‘basedir’ for object of type org.gradle.api.plugins.internal.DefaultJavaApplication.

I have ‘application’ in my plugins, and then:

application {
mainClassName = ‘com.oltpbenchmark.DBWorkload’
applicationDefaultJvmArgs = ["-Dlog4j.configuration=${basedir}/log4j.properties"]
}

This was pilot error, It was my use of ‘basedir’ copied from ant. Sorry.