Skip to content

Commit b5871c3

Browse files
author
Aleksey Medvedev
committed
Update to 2023.1
1 parent e046a6c commit b5871c3

File tree

7 files changed

+296
-214
lines changed

7 files changed

+296
-214
lines changed

build.gradle

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ buildscript {
1111
}
1212

1313
plugins {
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

1818
group '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

2424
apply plugin: 'kotlin'
2525
apply plugin: 'org.jetbrains.intellij'
@@ -41,23 +41,23 @@ repositories {
4141
}
4242

4343
dependencies {
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

4848
intellij {
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

5656
patchPluginXml {
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
7171
def GENERATE_GROUP = 'Generate'
7272

7373
task 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

8383
task 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

9797
compileKotlin {
98-
kotlinOptions.jvmTarget = "11"
98+
kotlinOptions.jvmTarget = "17"
9999
}
100100
compileJava {
101101
dependsOn generateCuteJSLexer

gradle/wrapper/gradle-wrapper.jar

7.57 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)