aboutsummaryrefslogtreecommitdiff
path: root/runners/fatjar/build.gradle
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2019-11-14 15:18:56 +0100
committerBłażej Kardyś <bkardys@virtuslab.com>2019-11-25 16:24:16 +0100
commitdac6ba2a589aa1e8a9f4a9c7af32026be77776b3 (patch)
treef7be54609c482f0a0e5b021db38410c0dee8a82f /runners/fatjar/build.gradle
parentd3bd543f569656e66112e584ad86af95ae7ea000 (diff)
downloaddokka-dac6ba2a589aa1e8a9f4a9c7af32026be77776b3.tar.gz
dokka-dac6ba2a589aa1e8a9f4a9c7af32026be77776b3.tar.bz2
dokka-dac6ba2a589aa1e8a9f4a9c7af32026be77776b3.zip
First plugin draft
Diffstat (limited to 'runners/fatjar/build.gradle')
-rw-r--r--runners/fatjar/build.gradle28
1 files changed, 28 insertions, 0 deletions
diff --git a/runners/fatjar/build.gradle b/runners/fatjar/build.gradle
index 4ce0416c..1da23841 100644
--- a/runners/fatjar/build.gradle
+++ b/runners/fatjar/build.gradle
@@ -1,5 +1,6 @@
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
import org.jetbrains.PluginXmlTransformer
+import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
@@ -18,7 +19,28 @@ jar {
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')
+}
+
+task apiShadow(type: ShadowJar) {
+ baseName = 'dokka-fatapi'
+ classifier = ''
+ configurations = [project.configurations.compile]
configurations {
exclude compileOnly
}
@@ -26,6 +48,7 @@ shadowJar {
transform(ServiceFileTransformer)
transform(PluginXmlTransformer)
+ exclude 'kotlin/**'
exclude 'colorScheme/**'
exclude 'fileTemplates/**'
exclude 'inspectionDescriptions/**'
@@ -44,6 +67,11 @@ publishing {
artifactId = 'dokka-fatjar'
project.shadow.component(publication)
}
+
+ dokkaFatApi(MavenPublication) {publication ->
+ artifactId = 'dokka-fatapi'
+ publication.artifact(project.tasks.apiShadow)
+ }
}
}