diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-12-03 16:22:11 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-12-03 16:22:49 +0100 |
commit | 39631054c58df5841ea268b7002b820ec55f6e0a (patch) | |
tree | cefedd8411c859243bd181568e16fcdd372a38c8 /dokka-fatjar | |
parent | 797cb4732c53bf1e3b2091add8cf731fc436607f (diff) | |
download | dokka-39631054c58df5841ea268b7002b820ec55f6e0a.tar.gz dokka-39631054c58df5841ea268b7002b820ec55f6e0a.tar.bz2 dokka-39631054c58df5841ea268b7002b820ec55f6e0a.zip |
restructure Dokka build to use Gradle for everything except for the Maven plugin
Diffstat (limited to 'dokka-fatjar')
-rw-r--r-- | dokka-fatjar/build.gradle | 107 | ||||
-rw-r--r-- | dokka-fatjar/dokka-fatjar.iml | 18 | ||||
-rw-r--r-- | dokka-fatjar/dokka.pro | 100 | ||||
-rw-r--r-- | dokka-fatjar/settings.gradle | 2 |
4 files changed, 0 insertions, 227 deletions
diff --git a/dokka-fatjar/build.gradle b/dokka-fatjar/build.gradle deleted file mode 100644 index 6f7d0d63..00000000 --- a/dokka-fatjar/build.gradle +++ /dev/null @@ -1,107 +0,0 @@ -group 'org.jetbrains.dokka' -version dokka_version -import proguard.gradle.ProGuardTask - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'net.sf.proguard:proguard-gradle:5.2.1' - } -} - -apply plugin: 'java' -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task wrapper(type: Wrapper) { - gradleVersion = '2.5' - distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" -} - -task sourceJar(type: Jar) { - from fileTree('../src') -} - -task proguard(type: ProGuardTask) { - configuration 'dokka.pro' - - injars "build/libs/dokka-fatjar-${dokka_version}.jar" - outjars "build/libs/dokka-fatjar-${dokka_version}.out.jar" -} -proguard.doLast { - def inFile = new File("$projectDir/build/libs/dokka-fatjar-${dokka_version}.jar") - if (!inFile.exists()) { - throw new IOException("Could not find Proguard input file ${inFile.absolutePath}") - } - inFile.renameTo("$projectDir/build/libs/dokka-fatjar-${dokka_version}.in.jar") - new File("$projectDir/build/libs/dokka-fatjar-${dokka_version}.out.jar").renameTo(inFile) -} - -jar { - manifest { - attributes "Implementation-Title": "Dokka Kotlin Documentation tool" - attributes "Implementation-Version": version - attributes "Main-Class" : "org.jetbrains.dokka.MainKt" - } - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - - fileTree(project.file('../lib')).filter { - it.name.endsWith('.jar') && - !it.name.contains("-sources") && - !it.name.contains("-javadoc") - }.each { - from (zipTree(it)) { - exclude 'META-INF/MANIFEST.MF' - exclude 'META-INF/*.SF' - exclude 'META-INF/*.DSA' - exclude 'META-INF/*.RSA' - exclude '**/*.kt' - exclude '**/*.java' - exclude '**/*.md' - } - } - ['dokka.jar', 'dokka-ant.jar'].each { - from (zipTree(project.file("../out/$it"))) { - exclude 'META-INF/MANIFEST.MF' - exclude 'META-INF/*.SF' - exclude 'META-INF/*.DSA' - exclude 'META-INF/*.RSA' - exclude '**/*.kt' - exclude '**/*.java' - exclude '**/*.md' - } - } -} - -publishing { - publications { - maven(MavenPublication) { - from components.java - - artifact sourceJar { - classifier "sources" - } - } - } -} - -bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - - pkg { - repo = 'dokka' - name = 'dokka' - userOrg = 'kotlin' - desc = 'Dokka, the Kotlin documentation tool' - vcsUrl = 'https://github.com/kotlin/dokka.git' - licenses = ['Apache-2.0'] - version { - name = dokka_version - } - } - - publications = ['maven'] -} diff --git a/dokka-fatjar/dokka-fatjar.iml b/dokka-fatjar/dokka-fatjar.iml deleted file mode 100644 index 3efbbe78..00000000 --- a/dokka-fatjar/dokka-fatjar.iml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<module external.linked.project.id=":dokka-fatjar" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="org.jetbrains.dokka" external.system.module.version="0.9" type="JAVA_MODULE" version="4"> - <component name="NewModuleRootManager" inherit-compiler-output="false"> - <output url="file://$MODULE_DIR$/build/classes/main" /> - <output-test url="file://$MODULE_DIR$/build/classes/test" /> - <exclude-output /> - <content url="file://$MODULE_DIR$"> - <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> - <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> - <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> - <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" /> - <excludeFolder url="file://$MODULE_DIR$/.gradle" /> - <excludeFolder url="file://$MODULE_DIR$/build" /> - </content> - <orderEntry type="inheritedJdk" /> - <orderEntry type="sourceFolder" forTests="false" /> - </component> -</module>
\ No newline at end of file diff --git a/dokka-fatjar/dokka.pro b/dokka-fatjar/dokka.pro deleted file mode 100644 index 97eae693..00000000 --- a/dokka-fatjar/dokka.pro +++ /dev/null @@ -1,100 +0,0 @@ -# Include java runtime classes --libraryjars <java.home>/lib/rt.jar - -# Keep filenames and line numbers --keepattributes SourceFile, LineNumberTable - --target 1.6 --dontoptimize --dontobfuscate - --ignorewarnings -# -keepdirectories - --dontwarn org.jetbrains.annotations.** --dontwarn org.apache.commons.httpclient.** --dontwarn org.apache.tools.ant.** --dontwarn org.codehaus.plexus.** --dontwarn hidden.org.codehaus.plexus.** --dontwarn org.fusesource.** --dontwarn org.jaxen.jdom.** - --keep class org.jetbrains.dokka.** { *; } --keep class org.fusesource.** { *; } --keep class org.jdom.input.JAXPParserFactory { *; } - --keep class org.jetbrains.annotations.** { - public protected *; -} - --keep class javax.inject.** { - public protected *; -} - --keep class org.jetbrains.kotlin.** { - public protected *; -} - --keep class org.jetbrains.kotlin.compiler.plugin.** { - public protected *; -} - --keep class org.jetbrains.kotlin.extensions.** { - public protected *; -} - --keep class org.jetbrains.org.objectweb.asm.Opcodes { *; } - --keep class org.jetbrains.kotlin.codegen.extensions.** { - public protected *; -} - --keepclassmembers class com.intellij.openapi.vfs.VirtualFile { - public InputStream getInputStream(); -} - --keep class jet.** { - public protected *; -} - --keep class com.intellij.psi.** { - public protected *; -} - -# for kdoc & dokka --keep class com.intellij.openapi.util.TextRange { *; } --keep class com.intellij.lang.impl.PsiBuilderImpl* { - public protected *; -} --keep class com.intellij.openapi.util.text.StringHash { *; } - -# for gradle plugin and other server tools --keep class com.intellij.openapi.util.io.ZipFileCache { public *; } - -# for j2k --keep class com.intellij.codeInsight.NullableNotNullManager { public protected *; } - --keepclassmembers enum * { - public static **[] values(); - public static ** valueOf(java.lang.String); -} - --keepclassmembers class * { - ** toString(); - ** hashCode(); - void start(); - void stop(); - void dispose(); -} - --keepclassmembers class org.jetbrains.org.objectweb.asm.Opcodes { - *** ASM5; -} - --keepclassmembers class org.jetbrains.org.objectweb.asm.ClassReader { - *** SKIP_CODE; - *** SKIP_DEBUG; - *** SKIP_FRAMES; -} - - diff --git a/dokka-fatjar/settings.gradle b/dokka-fatjar/settings.gradle deleted file mode 100644 index b8f66260..00000000 --- a/dokka-fatjar/settings.gradle +++ /dev/null @@ -1,2 +0,0 @@ -rootProject.name = 'dokka-fatjar' - |