blob: 42fa30e11eeef194e26527c4d9af5feafe253f7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
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()
maven {
url "https://dl.bintray.com/kotlin/kotlin-eap"
}
}
}
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()
maven {
url "https://dl.bintray.com/kotlin/kotlin-eap"
}
}
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'
testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: kotlin_version
}
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_eap.toBoolean() ? 'kotlin-eap' : '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']
}
|