aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/groovy/org/jetbrains
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-11-09 21:43:37 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-11-09 21:43:37 +0300
commit4626531f95e60e03086da163cde5edf5411a8d9b (patch)
tree40918b09816617c7c793a016757afd93725319b7 /buildSrc/src/main/groovy/org/jetbrains
parentf3c83f4751814984fb9aedeb991725620a287f33 (diff)
downloaddokka-4626531f95e60e03086da163cde5edf5411a8d9b.tar.gz
dokka-4626531f95e60e03086da163cde5edf5411a8d9b.tar.bz2
dokka-4626531f95e60e03086da163cde5edf5411a8d9b.zip
Drop dependency on intellij-core-analysis
Instead of it, download idea.jar and manually strip it Also, depends on same as kotlin-compiler openapi version
Diffstat (limited to 'buildSrc/src/main/groovy/org/jetbrains')
-rw-r--r--buildSrc/src/main/groovy/org/jetbrains/DependenciesVersionGetter.groovy14
1 files changed, 14 insertions, 0 deletions
diff --git a/buildSrc/src/main/groovy/org/jetbrains/DependenciesVersionGetter.groovy b/buildSrc/src/main/groovy/org/jetbrains/DependenciesVersionGetter.groovy
new file mode 100644
index 00000000..194f11af
--- /dev/null
+++ b/buildSrc/src/main/groovy/org/jetbrains/DependenciesVersionGetter.groovy
@@ -0,0 +1,14 @@
+package org.jetbrains
+
+import org.gradle.api.Project
+
+class DependenciesVersionGetter {
+ static Properties getVersions(Project project, String artifactVersionSelector) {
+ def dep = project.dependencies.create(group: 'teamcity', name: 'dependencies', version: artifactVersionSelector, ext: 'properties')
+ def file = project.configurations.detachedConfiguration(dep).resolve().first()
+
+ def prop = new Properties()
+ prop.load(new FileReader(file))
+ return prop
+ }
+}