• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
2import org.jetbrains.PluginXmlTransformer
3
4apply plugin: 'java'
5apply plugin: 'com.github.johnrengelman.shadow'
6
7dependencies {
8    compile project(":runners:cli")
9    compile project(":runners:ant")
10}
11
12jar {
13    manifest {
14        attributes 'Main-Class': 'org.jetbrains.dokka.MainKt'
15    }
16}
17
18shadowJar {
19    baseName = 'dokka-fatjar'
20    classifier = ''
21
22    configurations {
23        exclude compileOnly
24    }
25
26    transform(ServiceFileTransformer)
27    transform(PluginXmlTransformer)
28
29    exclude 'colorScheme/**'
30    exclude 'fileTemplates/**'
31    exclude 'inspectionDescriptions/**'
32    exclude 'intentionDescriptions/**'
33
34    exclude 'src/**'
35
36    relocate('kotlin.reflect.full', 'kotlin.reflect')
37}
38
39apply plugin: 'maven-publish'
40
41publishing {
42    publications {
43        dokkaFatJar(MavenPublication) { publication ->
44            artifactId = 'dokka-fatjar'
45            project.shadow.component(publication)
46        }
47    }
48}
49
50bintrayPublication(project, ["dokkaFatJar"])