forked from oss-review-toolkit/ort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
37 lines (33 loc) · 1.33 KB
/
settings.gradle.kts
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
pluginManagement {
resolutionStrategy {
eachPlugin {
// Work around https://github.com/gradle/gradle/issues/1697.
if (requested.id.namespace != "org.gradle" && requested.version == null) {
val versionPropertyName = if (requested.id.id == "org.jetbrains.kotlin.jvm") {
"kotlinPluginVersion"
} else {
val pluginName = requested.id.name.split('-').joinToString("") { it.capitalize() }.decapitalize()
"${pluginName}PluginVersion"
}
logger.info("Checking for plugin version property '$versionPropertyName'.")
gradle.rootProject.properties[versionPropertyName]?.let { version ->
logger.info("Setting '${requested.id.id}' plugin version to $version.")
useVersion(version.toString())
} ?: logger.warn("No version specified for plugin '${requested.id.id}' and property " +
"'$versionPropertyName' does not exist.")
}
}
}
}
rootProject.name = "oss-review-toolkit"
include("analyzer")
include("cli")
include("downloader")
include("evaluator")
include("model")
include("reporter")
include("reporter-web-app")
include("scanner")
include("spdx-utils")
include("test-utils")
include("utils")