diff options
author | Dmitry Jemerov <intelliyole@gmail.com> | 2015-07-15 13:05:25 +0200 |
---|---|---|
committer | Dmitry Jemerov <intelliyole@gmail.com> | 2015-07-15 13:05:25 +0200 |
commit | 823e7d10f185c8ea61351475fd298d5e70927a2c (patch) | |
tree | 763bc59b36391cb1a80b7a67c77c89b5bb3f2113 /dokka-fatjar/build.gradle | |
parent | 1a79c5d46536f1140f6348868aa14974182114ba (diff) | |
parent | f0ea1cfaec90479243268a87b11481141fd920c5 (diff) | |
download | dokka-823e7d10f185c8ea61351475fd298d5e70927a2c.tar.gz dokka-823e7d10f185c8ea61351475fd298d5e70927a2c.tar.bz2 dokka-823e7d10f185c8ea61351475fd298d5e70927a2c.zip |
Merge pull request #30 from cy6erGn0m/build
Change building process
Diffstat (limited to 'dokka-fatjar/build.gradle')
-rw-r--r-- | dokka-fatjar/build.gradle | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dokka-fatjar/build.gradle b/dokka-fatjar/build.gradle new file mode 100644 index 00000000..e7c9cd97 --- /dev/null +++ b/dokka-fatjar/build.gradle @@ -0,0 +1,53 @@ +group 'org.jetbrains.dokka' +version '0.0.1-SNAPSHOT' + +apply plugin: 'java' +apply plugin: 'maven-publish' + +dependencies { + compile 'org.fusesource.jansi:jansi:[1.11,2.0)' +} + +task wrapper(type: Wrapper) { + gradleVersion = '2.5' + distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" +} + +task sourceJar(type: Jar) { + from fileTree('../src') +} + +jar { + manifest { + attributes "Implementation-Title": "Dokka Kotlin Documentation tool" + attributes "Implementation-Version": version + attributes "Main-Class" : "org.jetbrains.dokka.DokkaPackage" + } + + fileTree(project.file('../lib')).filter { it.name.endsWith('.jar') && !it.name.contains("-sources") }.each { + from (zipTree(it)) { + exclude 'META-INF/MANIFEST.MF' + exclude 'META-INF/*.SF' + exclude 'META-INF/*.DSA' + exclude 'META-INF/*.RSA' + } + } + from (zipTree(project.file('../out/dokka.jar'))) { + exclude 'META-INF/MANIFEST.MF' + exclude 'META-INF/*.SF' + exclude 'META-INF/*.DSA' + exclude 'META-INF/*.RSA' + } +} + +publishing { + publications { + maven(MavenPublication) { + from components.java + + artifact sourceJar { + classifier "sources" + } + } + } +} |