@@ -11,15 +11,15 @@ buildscript {
1111}
1212
1313plugins {
14- id " org.jetbrains.intellij" version " 1.8.0 "
15- id " org.jetbrains.grammarkit" version " 2021.2.2 "
14+ id " org.jetbrains.intellij" version " 1.13.3 "
15+ id " org.jetbrains.grammarkit" version " 2022.3.1 "
1616}
1717
1818group ' org.cutejs'
19- version ' 1.1.1 '
19+ version ' 1.1.2 '
2020
21- sourceCompatibility = " 11 "
22- targetCompatibility = " 11 "
21+ sourceCompatibility = " 17 "
22+ targetCompatibility = " 17 "
2323
2424apply plugin : ' kotlin'
2525apply plugin : ' org.jetbrains.intellij'
@@ -41,23 +41,23 @@ repositories {
4141}
4242
4343dependencies {
44- testImplementation group : ' junit' , name : ' junit' , version : ' 4.12 '
45- compileOnly fileTree(dir : ' /opt/phpstorm/plugins/JavaScriptLanguage /lib' , include : [' JavaScriptLanguage .jar' , ' javascript-openapi.jar' , ' resources_en.jar' , ' js-test-common.jar' ])
44+ testImplementation group : ' junit' , name : ' junit' , version : ' 4.13.1 '
45+ compileOnly fileTree(dir : ' /opt/phpstorm/plugins/javascript-impl /lib' , include : [' javascript-impl .jar' , ' javascript-openapi.jar' , ' resources_en.jar' , ' js-test-common.jar' ])
4646}
4747
4848intellij {
49- version = ' 2022.2 '
49+ version = ' 2023.1 '
5050 runIde { ideDir = file(' /opt/phpstorm' ) }
5151 downloadSources = true
5252 pluginName = ' cutejs-intellij-plugin'
53- plugins = [' PsiViewer:222 -SNAPSHOT' ]
53+ plugins = [' PsiViewer:231 -SNAPSHOT' ]
5454}
5555
5656patchPluginXml {
57- sinceBuild = " 203 "
57+ sinceBuild = " 231 "
5858 changeNotes = """
5959 <ul>
60- <li>Support for 2022.2 Intellij platform.</li>
60+ <li>Support for 2023.1 Intellij platform.</li>
6161 </ul>
6262 """
6363}
@@ -71,8 +71,8 @@ import org.jetbrains.grammarkit.tasks.GenerateParserTask
7171def GENERATE_GROUP = ' Generate'
7272
7373task generateCuteJSLexer (type : GenerateLexerTask ) {
74- source = " src/main/grammar/CuteJS.flex"
75- targetDir = " src/main/gen/org/cutejs/lang/lexer"
74+ sourceFile = file( ' src/main/grammar/CuteJS.flex' )
75+ targetDir = ' src/main/gen/org/cutejs/lang/lexer'
7676 targetClass = " _CuteLexer"
7777 purgeOldFiles = true
7878
@@ -81,7 +81,7 @@ task generateCuteJSLexer(type: GenerateLexerTask) {
8181}
8282
8383task generateCuteJSParser (type : GenerateParserTask ) {
84- source = " src/main/grammar/CuteJS.bnf"
84+ sourceFile = file( ' src/main/grammar/CuteJS.bnf' )
8585 targetRoot = ' src/main/gen'
8686 pathToParser = ' src/main/gen/org/cutejs/lang/CuteParser.java'
8787 pathToPsiRoot = ' src/main/gen/org/cutejs/lang/psi'
@@ -95,7 +95,7 @@ task generateCuteJSParser(type: GenerateParserTask) {
9595}
9696
9797compileKotlin {
98- kotlinOptions. jvmTarget = " 11 "
98+ kotlinOptions. jvmTarget = " 17 "
9999}
100100compileJava {
101101 dependsOn generateCuteJSLexer
0 commit comments