我想将最后找到的所有LCS作为列表返回
我能够打印所有可能的LCS
// grab version property, split on '-' to remove '-SNAPSHOT', and then tokenize
def versionParts = sh(returnStdout: true, script: "./gradlew properties -q | grep 'version:' | awk '{print \$2}'").split("-")[0].tokenize(".")
// sometimes this is null??
def majorVersion = versionParts[0]
返回类型应为List,它仅返回所有可能的LCS的列表