Allow the plugin version to be optional

This commit is contained in:
Pavlo Shevchenko 2024-03-20 15:14:20 +01:00 committed by daz
parent e36e909388
commit 7c19ee1e3d
No known key found for this signature in database

View File

@ -128,7 +128,7 @@ def ciAutoInjectionCustomValueValue = getInputParam('develocity.auto-injection.c
def atLeastGradle5 = GradleVersion.current() >= GradleVersion.version('5.0') def atLeastGradle5 = GradleVersion.current() >= GradleVersion.version('5.0')
def atLeastGradle4 = GradleVersion.current() >= GradleVersion.version('4.0') def atLeastGradle4 = GradleVersion.current() >= GradleVersion.version('4.0')
def shouldApplyDevelocityPlugin = atLeastGradle5 && isAtLeast(develocityPluginVersion, '3.17') def shouldApplyDevelocityPlugin = atLeastGradle5 && develocityPluginVersion && isAtLeast(develocityPluginVersion, '3.17')
def dvOrGe = { def dvValue, def geValue -> def dvOrGe = { def dvValue, def geValue ->
if (shouldApplyDevelocityPlugin) { if (shouldApplyDevelocityPlugin) {