aboutsummaryrefslogtreecommitdiff
path: root/coreDependencies/build.gradle
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-09-10 15:15:09 +0200
committerKamil Doległo <kamilok1965@interia.pl>2019-10-10 12:21:16 +0200
commitb536699655e40c62cd603e1f98869786566604bd (patch)
treec99447d71551ef9338bef1913d86062c22224e32 /coreDependencies/build.gradle
parentde2f32d91fb6f564826ddd7644940452356e2080 (diff)
downloaddokka-b536699655e40c62cd603e1f98869786566604bd.tar.gz
dokka-b536699655e40c62cd603e1f98869786566604bd.tar.bz2
dokka-b536699655e40c62cd603e1f98869786566604bd.zip
WIP on restructuring
Diffstat (limited to 'coreDependencies/build.gradle')
-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