import javax.tools.ToolProvider apply plugin: 'maven-publish' dependencies { compileOnly project(':core') } publishing { publications { dokkaCore(MavenPublication) { publication -> artifactId = 'mathjax-plugin' from components.java } } }