VersionUtil { public static String normalizeTargetPlatformVersion( String targetPlatformVersion) { String normalizedTargetPlatformVersion = targetPlatformVersion; Matcher matcher = _externalVersionPattern.matcher( targetPlatformVersion); if (matcher.matches()) { StringBuilder sb = new StringBuilder(); sb.append(matcher.group(1)); sb.append('.'); sb.append(matcher.group(2)); sb.append('.'); String label = matcher.group(3); try { int labelNumber = Integer.parseInt(matcher.group(4)); label = StringUtil.toLowerCase(label); if (label.startsWith("fp")) { sb.append("10."); sb.append(label); sb.append(labelNumber); } else if (label.startsWith("ga")) { sb.append(labelNumber - 1); } else if (label.startsWith("sp")) { sb.append("10."); sb.append(labelNumber); } } catch (NumberFormatException numberFormatException) { throw new GradleException( "Invalid version property value", numberFormatException); } normalizedTargetPlatformVersion = sb.toString(); } return normalizedTargetPlatformVersion; }  static boolean isDXPVersion(String targetPlatformVersion); static String normalizeTargetPlatformVersion(
		String targetPlatformVersion);  }
@Test public void testNormalizeTargetPlatformVersion() throws Exception { Assert.assertEquals( "7.0.0", VersionUtil.normalizeTargetPlatformVersion("7.0.0")); Assert.assertEquals( "7.0.0", VersionUtil.normalizeTargetPlatformVersion("7.0-GA1")); Assert.assertEquals( "7.0.0", VersionUtil.normalizeTargetPlatformVersion("7.0-ga1")); Assert.assertEquals( "7.0.6", VersionUtil.normalizeTargetPlatformVersion("7.0-GA7")); Assert.assertEquals( "7.0.6", VersionUtil.normalizeTargetPlatformVersion("7.0-ga7")); Assert.assertEquals( "7.0.10.1", VersionUtil.normalizeTargetPlatformVersion("7.0.10.1")); Assert.assertEquals( "7.0.10.fp1", VersionUtil.normalizeTargetPlatformVersion("7.0.10.fp1")); }