import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer import org.jetbrains.PluginXmlTransformer apply plugin: 'com.github.johnrengelman.shadow' dependencies { compile project(":runners:cli") compile project(":runners:ant") } jar { manifest { attributes 'Main-Class': 'org.jetbrains.dokka.MainKt' } } shadowJar { baseName = 'dokka-fatjar' classifier = '' configurations { exclude provided } transform(ServiceFileTransformer) transform(PluginXmlTransformer) exclude 'colorScheme/**' exclude 'fileTemplates/**' exclude 'inspectionDescriptions/**' exclude 'intentionDescriptions/**' } apply plugin: 'maven-publish' publishing { publications { dokkaFatJar(MavenPublication) { from components.shadow artifactId = 'dokka-fatjar' } } } bintrayPublication(project, ["dokkaFatJar"])