blob: c731327877c830bdf42ebcb92244722c59814ce1 [file] [log] [blame]
import javax.tools.ToolProvider
group 'org.jetbrains.dokka'
version dokka_version
buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
}
repositories {
jcenter()
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
sourceCompatibility = 1.5
repositories {
mavenCentral()
}
configurations {
provided
}
dependencies {
compile "com.google.inject:guice:4.0"
compile "com.github.spullara.cli-parser:cli-parser:1.1.1"
compile "org.jsoup:jsoup:1.8.3"
compile "org.apache.ant:ant:1.9.6"
compile files("../lib/intellij-core-analysis.jar")
compile files("../lib/kotlin-for-upsource.jar")
compile files("../lib/markdown.jar")
compile files("../lib/picocontainer.jar")
provided files(((URLClassLoader) ToolProvider.getSystemToolClassLoader()).getURLs().findAll { it.path.endsWith("jar") })
runtime "org.fusesource.jansi:jansi:1.11"
runtime files("../lib/trove4j.jar")
runtime files("../lib/jdom.jar")
runtime files("../lib/protobuf-2.5.0-lite.jar")
runtime files("../lib/asm-all.jar")
runtime files("../lib/jps-model.jar")
testCompile group: 'junit', name: 'junit', version: '4.11'
}
tasks.withType(AbstractCompile) {
classpath += configurations.provided
}
tasks.withType(Test) {
classpath += configurations.provided
}
jar {
manifest {
attributes "Implementation-Title": "Dokka Kotlin Documentation tool"
attributes "Implementation-Version": version
attributes "Main-Class": "org.jetbrains.dokka.MainKt"
}
}
shadowJar {
baseName = 'dokka-fatjar'
classifier = ''
dependencies {
exclude(dependency('org.apache.ant:ant:1.9.6'))
}
}
publishing {
publications {
shadow(MavenPublication) {
from components.shadow
artifactId = 'dokka-fatjar'
}
}
}
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 = ['shadow']
}