Can't publish gradle plugin

Hello there,

I’d like to post a new release of the org.kordamp.markdown.convert plugin to the new plugin portal, but also to my own Bintray repository. The latest version of the codebase is available at

The project applies the following plugins

plugins { id 'com.jfrog.bintray' version '1.6' id 'com.github.hierynomus.license' version '0.11.0' id 'net.nemerosa.versioning' version '1.7.1' id 'com.github.ben-manes.versions' version '0.12.0' id 'com.gradle.plugin-publish' version '0.9.4' id 'com.github.kt3k.coveralls' version '2.6.3' id 'idea' id 'groovy' id 'maven-publish' }

Invoking gradlew bintrayUpload results in all artifacts uploaded to Bintray. Everything works.
Invoking gradlew publishPlugins results in the following stacktrace

Caused by: java.lang.NoSuchMethodError: org.apache.maven.model.Dependency.getOptional()Ljava/lang/String; at com.gradle.publish.PomWriter.addDependency( at com.gradle.publish.PomWriter.createPomDocument( at com.gradle.publish.PomWriter.writePom( at com.gradle.publish.PublishTask.generatePom( at com.gradle.publish.PublishTask.publish( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.gradle.internal.reflect.JavaMethod.invoke( at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute( at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute( at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute( at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute( at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute( at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction( at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions( ... 71 more

Any clues on how to fix this would be greatly appreciated, as these settings will be applied to jmh, jbake, and asciidoctor plugins too.

I had the exact same problem. Setting the version for com.gradle.plugin-publish to 0.9.1 (down from the latest 0.9.4) fixed it for me.

Same problem here. In my case it’s the combination of
com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3 with

Using com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5 makes publishing work again.

Reproducible with

It seems that the plugins may be interfering with one another.

I’ve personally been able to fix this with as mentioned on Twitter.

Please let us know if that does not solve your issue. I expect we’ll file a bug on the bintray plugin or fix this in plugin-publishing in a future version

Reordering the buildscript classpath worked (


1 Like