Skip to content

Commit 451be6c

Browse files
committed
Kotlin: Add explicit CI version number to build script
1 parent 0bd00ce commit 451be6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/kotlin-extractor/kotlin_plugin_versions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def version_string_to_tuple(version):
2121
m = re.match(r'([0-9]+)\.([0-9]+)\.([0-9]+)(.*)', version)
2222
return tuple([int(m.group(i)) for i in range(1, 4)] + [m.group(4)])
2323

24+
# Version number used by CI. It needs to be one of the versions in many_versions.
25+
ci_version = '1.7.0'
26+
2427
# Version numbers in the list need to be in semantically increasing order
2528
many_versions = [ '1.4.32', '1.5.0', '1.5.10', '1.5.21', '1.5.31', '1.6.10', '1.6.20', '1.7.0' ]
2629

@@ -54,8 +57,7 @@ def get_single_version(fakeVersionOutput = None):
5457
raise Exception(f'No suitable kotlinc version found for {current_version} (got {versionOutput}; know about {str(many_versions)})')
5558

5659
def get_latest_url():
57-
version = many_versions[-1]
58-
url = 'https://github.com/JetBrains/kotlin/releases/download/v' + version + '/kotlin-compiler-' + version + '.zip'
60+
url = 'https://github.com/JetBrains/kotlin/releases/download/v' + ci_version + '/kotlin-compiler-' + ci_version + '.zip'
5961
return url
6062

6163
if __name__ == "__main__":

0 commit comments

Comments
 (0)