-exec in file name during mavenJava publish being ignored

I am upgrading from gradle 3 to 5 and changed from bootRepackage to bootJar. I’m trying to upload the jar file to my maven repo after building and I keep getting a file not found message. The file created is called project-manager-0.1-exec.jar but when I go to publish it, I can’t seem to keep the -exec in the file name in the right position. Any time I have -exec before the .jar, it gets left off during the upload process and tries to upload file project-manager-0.1.jar. If I left the version off the file name, it leaves the -exec and if i put the -exec before the version, it puts the -exec in the file name too. It seems to be whenever it’s after the version but before the .jar.

Any ideas what I am doing wrong? Thanks in advance.

mainClassName = ‘com.mystuff.projectmanager.ProjectManagerApplication’

bootJar {
classifier = ‘exec’
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId ‘com.mystuff’
from components.java
artifact(file("{libsDir}/{project.name}-{project.version}-exec.jar")) } api(MavenPublication) { artifactId "{project.name}-api"
artifact (file("{libsDir}/{project.name}-api-${project.version}.jar"))
}
}
repositories {
maven {
credentials {
username ‘username’
password ‘userpassword’
}
url “http://localhost:8080/nexus/content/repositories/maven/
}
}
}