aboutsummaryrefslogtreecommitdiff
path: root/runners/fatjar/build.gradle
diff options
context:
space:
mode:
authorSimon Ogorodnik <sem-oro@yandex.ru>2016-11-01 02:10:32 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-01 14:46:01 +0300
commit769701f99a1aefbc9d385c1938c9c7d3a7b2e38e (patch)
treec3ea4802d9e627c90870808aba9343eb224a114c /runners/fatjar/build.gradle
parent08bcaa257f7b48929af6ee29007dd6f0d7bb1b52 (diff)
downloaddokka-769701f99a1aefbc9d385c1938c9c7d3a7b2e38e.tar.gz
dokka-769701f99a1aefbc9d385c1938c9c7d3a7b2e38e.tar.bz2
dokka-769701f99a1aefbc9d385c1938c9c7d3a7b2e38e.zip
Total build refactoring, prepare for new development iteration
Removed old and useless build helpers Remove old .xml's from .idea and add .idea/shelf to .gitignore build-docs.xml fixed, dokka_version set to 0.9.10
Diffstat (limited to 'runners/fatjar/build.gradle')
-rw-r--r--runners/fatjar/build.gradle62
1 files changed, 62 insertions, 0 deletions
diff --git a/runners/fatjar/build.gradle b/runners/fatjar/build.gradle
new file mode 100644
index 00000000..df20c9b9
--- /dev/null
+++ b/runners/fatjar/build.gradle
@@ -0,0 +1,62 @@
+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")
+}
+
+shadowJar {
+ baseName = 'dokka-fatjar'
+ classifier = ''
+
+ configurations {
+ exclude provided
+ }
+
+ relocate('com.', 'dokkacom.') {
+ exclude 'com.sun.**'
+ }
+
+ relocate('org.', 'dokkaorg.') {
+ exclude 'org.jetbrains.dokka.**'
+ exclude 'org.xml.**'
+ exclude 'org.w3c.**'
+ exclude 'org.jaxen.**'
+ exclude 'org.apache.xerces.**'
+ exclude 'org.apache.xml.**'
+ exclude 'org.fusesource.jansi.**'
+ exclude 'org.apache.tools.ant.**'
+ }
+
+
+ relocate('kotlin.', 'dokkakotlin.') {
+ exclude '**.*kotlin_builtins' //For kotlin_builtins, still not sure that we should relocate kotlin stdlib
+ exclude 'kotlin.reflect' /* WAT? Ok, ok. Relocate works as Ctrl + Shift + R for ALL class files, so,
+ if you have string "kotlin.reflect", it will be rewritten to not relevant "dokkakotlin.reflect" and you will got
+ builtins crash in runtime, cause could not find dokkakotlin/reflect/reflect.kotlin_builtins */
+ }
+
+ 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"]) \ No newline at end of file