blob: 4677309c4a9fb02a9d45813e1af008af35e67604 (
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
|
repositories {
ivy(ivyrepo)
}
configurations {
kotlin_plugin_full
}
dependencies {
final String ijVersion = "20" + ideaVersion.take(2) + "." + ideaVersion[2]
kotlin_plugin_full "teamcity:kotlin-plugin-$bundled_kotlin_compiler_version-IJ$ijVersion-1:$bundled_kotlin_compiler_version@zip"
}
def intellijCoreAnalysis() {
return zipTree(project(":").configurations.intellijCore.singleFile).matching ({
include("intellij-core-analysis.jar")
})
}
def kotlinPluginDependency() {
return zipTree(project.configurations.kotlin_plugin_full.singleFile).matching({
include("Kotlin/lib/kotlin-plugin.jar")
})
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
compile kotlinPluginDependency()
compile intellijCoreAnalysis()
compile "teamcity:kotlin-ide-common:$bundled_kotlin_compiler_version"
}
shadowJar {
baseName = 'dokka-dependencies'
classifier = ''
configurations {
exclude compileOnly
}
exclude 'colorScheme/**'
exclude 'fileTemplates/**'
exclude 'inspectionDescriptions/**'
exclude 'intentionDescriptions/**'
exclude 'tips/**'
exclude 'messages/**'
exclude 'src/**'
}
apply plugin: 'maven-publish'
publishing {
publications {
dokkaDependencies(MavenPublication) { publication ->
artifactId = 'dokka-dependencies'
project.shadow.component(publication)
}
}
}
bintrayPublication(project, ["dokkaDependencies"])
|