Handle older versions of gradle

This commit is contained in:
Louis Boudreau 2023-01-04 12:27:03 -05:00
Родитель 015c852dc6
Коммит f498ce8d8e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -202,7 +202,7 @@ module Licensed
# Prefixes the gradle command with the project name for multi-build projects.
def format_command(command, source_path)
Dir.chdir(source_path) do
path = Licensed::Shell.execute(executable, "properties", "--property", "path", "-Dorg.gradle.logging.level=quiet")&.split(" ").last
path = Licensed::Shell.execute(executable, "properties", "-Dorg.gradle.logging.level=quiet").scan(/path:.*/).last.split(" ").last
path == ":" ? command : "#{path}:#{command}"
end
end