You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
50 lines
1.0 KiB
4 months ago
|
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
|
||
|
import org.jetbrains.PluginXmlTransformer
|
||
|
|
||
|
apply plugin: 'java'
|
||
|
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 compileOnly
|
||
|
}
|
||
|
|
||
|
transform(ServiceFileTransformer)
|
||
|
transform(PluginXmlTransformer)
|
||
|
|
||
|
exclude 'colorScheme/**'
|
||
|
exclude 'fileTemplates/**'
|
||
|
exclude 'inspectionDescriptions/**'
|
||
|
exclude 'intentionDescriptions/**'
|
||
|
|
||
|
exclude 'src/**'
|
||
|
|
||
|
relocate('kotlin.reflect.full', 'kotlin.reflect')
|
||
|
}
|
||
|
|
||
|
apply plugin: 'maven-publish'
|
||
|
|
||
|
publishing {
|
||
|
publications {
|
||
|
dokkaFatJar(MavenPublication) { publication ->
|
||
|
artifactId = 'dokka-fatjar'
|
||
|
project.shadow.component(publication)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
bintrayPublication(project, ["dokkaFatJar"])
|