11plugins  {
22    //  https://github.com/JetBrains/gradle-intellij-plugin
3-     id ' org.jetbrains.intellij' ' 1.13.3 ' 
3+     id ' org.jetbrains.intellij' ' 1.17.2 ' 
44    id ' jacoco' 
55    id ' com.github.kt3k.coveralls' ' 2.8.4' 
66    id ' com.github.ManifestClasspath' ' 0.1.0-RELEASE' 
77    //  https://github.com/JetBrains/gradle-grammar-kit-plugin
8-     id ' org.jetbrains.grammarkit' ' 2021 .2.2' 
8+     id ' org.jetbrains.grammarkit' ' 2022.3 .2.2' 
99}
1010
1111jacoco  {
@@ -38,7 +38,7 @@ dependencies {
3838sourceSets  {
3939    main {
4040        java {
41-             srcDirs =  [' src/main/java' ' gen' 
41+             srcDirs =  [' src/main/java' ' src/ gen/java ' 
4242        }
4343        resources {
4444            srcDirs =  [' src/main/resources' 
@@ -67,15 +67,15 @@ idea {
6767}
6868
6969var final  EAP_VERSION  =  ' LATEST-EAP-SNAPSHOT' 
70- var final  EAP_BUILD  =  ' 233 ' 
70+ var final  EAP_BUILD  =  ' 241 ' 
7171
7272var final  DEFAULT_VERSION  =  ' 2022.2.1' // 'LATEST-EAP-SNAPSHOT' //
7373
7474//  IDE version - https://www.jetbrains.com/intellij-repository/releases
7575var idea_version =  System . getenv(). getOrDefault(' IDEA_VERSION' DEFAULT_VERSION )
7676var build_version =  idea_version ==  EAP_VERSION  ?  EAP_BUILD  :  idea_version. substring(2 , 4 ) +  idea_version. charAt(5 ) //  extract e.g. '221' from '2022.1.1'
7777
78- version ' 3.2.3 -' +  build_version
78+ version ' 3.3.0 -' +  build_version
7979
8080apply plugin : ' org.jetbrains.intellij' 
8181intellij  {
@@ -96,8 +96,12 @@ patchPluginXml {
9696    sinceBuild =  build_version
9797
9898    changeNotes =  """ <pre style="font-family: sans-serif">
99- NEW: Prevent github issue submitter spam 
100- FIX: Improve issue duplicate finder 
99+ CHORE: Update gradle build 
100+ FIX: PluginException: xxx ms to call on EDT CsvChangeSeparatorActionGroup#update@EditorPopup #401 
101+ FIX: AlreadyDisposedException: Already disposed #639 
102+ FIX: Exceptions occurred on invoking the intention 'Unquote' on a copy of the file #670 #816 
103+ FIX: StringIndexOutOfBoundsException: begin 0, end -1, length 5993 #801 
104+ FIX: Unhandled exception in [CoroutineName(PsiAwareFileEditorManagerImpl)] #666 
101105</pre>"""  
102106}
103107publishPlugin  {
@@ -122,24 +126,25 @@ grammarKit {
122126    //  version of IntelliJ patched JFlex - https://bintray.com/jetbrains/intellij-third-party-dependencies/jflex
123127    jflexRelease =  ' 1.7.0-1' 
124128    //  tag or short commit hash of Grammar-Kit to use - https://github.com/JetBrains/Grammar-Kit
125-     grammarKitRelease =  System . getenv(). getOrDefault(' GRAMMAR_KIT_VERSION' ' 2021.1.2' 
129+     //  USE DEFAULT
130+     //  grammarKitRelease = System.getenv().getOrDefault('GRAMMAR_KIT_VERSION', '2022.3.2')
126131}
127132
128133tasks. named(" generateParser" . configure  {
129-     source  =  ' src/main/java/net/seesharpsoft/intellij/plugins/csv/Csv.bnf' 
130-     targetRoot  =  ' gen' 
131-     pathToParser =  ' / net/seesharpsoft/intellij/plugins/csv/parser/CsvParser.java' 
132-     pathToPsiRoot =  ' / net/seesharpsoft/intellij/plugins/csv/psi' 
134+     sourceFile  =  file( ' src/main/java/net/seesharpsoft/intellij/plugins/csv/Csv.bnf' ) 
135+     targetRootOutputDir  =  file( ' src/ gen/java ' ) 
136+     pathToParser =  ' net/seesharpsoft/intellij/plugins/csv/parser/CsvParser.java' 
137+     pathToPsiRoot =  ' net/seesharpsoft/intellij/plugins/csv/psi' 
133138    purgeOldFiles =  true 
134139}
135140
136141tasks. named(" generateLexer" . configure  {
137142    dependsOn generateParser
138143
139-     source  =  ' src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvLexer.flex' 
140-     targetDir  =  ' . /gen/net/seesharpsoft/intellij/plugins/csv/ ' 
144+     sourceFile  =  file( ' src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvLexer.flex' ) 
145+     targetOutputDir  =  file( ' src /gen/java/ net/seesharpsoft/intellij/plugins/csv' ) 
141146    targetClass =  ' CsvLexer' 
142-     purgeOldFiles =  true 
147+     purgeOldFiles =  false 
143148}
144149
145150compileJava  {
0 commit comments