File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ buildscript {
5
5
* for more complex conversion ideaVersion -> sinceIdeaBuild
6
6
* see https://github.com/rhdunn/xquery-intellij-plugin/blob/master/build.gradle#L1-L47
7
7
*/
8
- def since = ideaVersion =~ / IC-20(\d\d )\. ([1-3])(\.\d +)?$/
9
- if (since . matches()) {
10
- ext. sinceIdeaBuild = " ${ since .group(1)}${ since .group(2)} " . toInteger()
8
+ def versionMatcher = ideaVersion =~ / IC-20(\d\d )\. ([1-3])(\.\d +)?$/
9
+ if (versionMatcher . matches()) {
10
+ ext. ideaNumericVersion = " ${ versionMatcher .group(1)}${ versionMatcher .group(2)} " . toInteger()
11
11
}
12
12
13
- if (ext. sinceIdeaBuild . toInteger() >= 223 ) {
13
+ if (ext. ideaNumericVersion . toInteger() >= 223 ) {
14
14
ext. kotlinVersion = kotlinVersionIdea221
15
15
ext. java_version = " 17"
16
- } else if (ext. sinceIdeaBuild . toInteger() >= 221 ) {
16
+ } else if (ext. ideaNumericVersion . toInteger() >= 221 ) {
17
17
ext. kotlinVersion = kotlinVersionIdea221
18
18
ext. java_version = " 11"
19
19
} else {
Original file line number Diff line number Diff line change 1
- ideaVersion =IC-2022.1
1
+ ideaVersion =IC-2023.3
2
2
# build number ranges
3
3
# https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html
4
4
sinceIdeaBuild =221
You can’t perform that action at this time.
0 commit comments