blob: 194f11afb4fb8f3593d909652c0040bb7d8e7250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}
}
|