Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (33 sloc) 1.32 KB
pluginManagement {
resolutionStrategy {
eachPlugin {
// Work around https://github.com/gradle/gradle/issues/1697.
if (requested.id.namespace != null && 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")
You can’t perform that action at this time.