aboutsummaryrefslogtreecommitdiff
path: root/coreDependencies
diff options
context:
space:
mode:
Diffstat (limited to 'coreDependencies')
-rw-r--r--coreDependencies/build.gradle66
1 files changed, 66 insertions, 0 deletions
diff --git a/coreDependencies/build.gradle b/coreDependencies/build.gradle
new file mode 100644
index 00000000..4677309c
--- /dev/null
+++ b/coreDependencies/build.gradle
@@ -0,0 +1,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"]) \ No newline at end of file