Skip to content

Commit fdb6aaa

Browse files
authored
Merge pull request #356 from SeeSharpSoft/fb_multi_version_build
Multi Version Build
2 parents 014099f + 9b8b8a0 commit fdb6aaa

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.github/workflows/PublishStable.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- ideaVersion: IC-2022.1.1
19+
- ideaVersion: 2022.2.1
2020
gkVersion: 2021.1.2
21-
- ideaVersion: IC-2022.2.1
21+
- ideaVersion: LATEST-EAP-SNAPSHOT
2222
gkVersion: 2021.1.2
2323

2424
steps:
@@ -32,7 +32,6 @@ jobs:
3232
run: chmod +x gradlew
3333
- name: Build with Gradle
3434
env:
35-
3635
IDEA_VERSION: ${{ matrix.ideaVersion }}
3736
GRAMMAR_KIT_VERSION: ${{ matrix.gkVersion }}
3837
IDEA_SOURCES: false

.github/workflows/PullRequest.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- ideaVersion: PY-2022.1.1
19+
- ideaVersion: 2022.2.1
20+
ideaType: PS
2021
gkVersion: 2021.1.2
21-
- ideaVersion: IC-2022.2.1
22+
- ideaVersion: 2022.2.3
23+
ideaType: PY
2224
gkVersion: 2021.1.2
2325

2426
steps:
@@ -33,6 +35,7 @@ jobs:
3335
- name: Build with Gradle
3436
env:
3537
IDEA_VERSION: ${{ matrix.ideaVersion }}
38+
IDEA_TYPE: ${{ matrix.ideaType }}
3639
GRAMMAR_KIT_VERSION: ${{ matrix.gkVersion }}
3740
IDEA_SOURCES: false
3841
run: xvfb-run ./gradlew test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# CSV Editor Plugin for JetBrains IDE family
99

10-
Compatible with _IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion Gogland DataGrip Rider MPS Android Studio_ - __2022.1 and newer__
10+
Compatible with _IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion Gogland DataGrip Rider MPS Android Studio_ - __2022.2 and newer__
1111

1212
This plugin introduces CSV (_Comma-Separated Values_) as a language to Jetbrains IDE with a syntax definition, structured language elements and associated file types (.csv/.tsv/.psv).
1313
This enables default editor features like syntax validation, highlighting and inspections for CSV-alike files.

build.gradle

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jacocoTestReport {
2121
group 'net.seesharpsoft.intellij.plugins'
2222

2323
apply plugin: 'java'
24-
project.sourceCompatibility = JavaVersion.VERSION_11
25-
project.targetCompatibility = JavaVersion.VERSION_11
24+
project.sourceCompatibility = JavaVersion.VERSION_17
25+
project.targetCompatibility = JavaVersion.VERSION_17
2626
tasks.withType(JavaCompile) {
2727
options.encoding = 'UTF-8'
2828
options.compilerArgs << "-Xlint:deprecation"
@@ -66,18 +66,21 @@ idea {
6666
}
6767
}
6868

69-
var final EAP_VERSION = 'LATEST-EAP-SNAPSHOT';
69+
var final EAP_VERSION = 'LATEST-EAP-SNAPSHOT'
70+
7071
// IDE version - https://www.jetbrains.com/intellij-repository/releases
71-
var idea_version = System.getenv().getOrDefault('IDEA_VERSION', 'IC-2022.1.1')
72-
var build_version = idea_version == EAP_VERSION ? idea_version : idea_version.substring(5, 7) + idea_version.charAt(8) // extract e.g. '221' from 'IC-2022.1.1'
72+
var idea_version = System.getenv().getOrDefault('IDEA_VERSION', '2022.2.1')
73+
var build_version = idea_version == EAP_VERSION ? '223' : idea_version.substring(2, 4) + idea_version.charAt(5) // extract e.g. '221' from '2022.1.1'
7374

7475
version '3.0.0-' + build_version
7576

7677
apply plugin: 'org.jetbrains.intellij'
7778
intellij {
7879
version = idea_version
79-
pluginName = 'CSV'
80+
type = System.getenv().getOrDefault('IDEA_TYPE', 'IC')
81+
pluginName = 'CSVEditor'
8082
updateSinceUntilBuild = true
83+
sameSinceUntilBuild = true
8184
downloadSources = Boolean.parseBoolean(System.getenv().getOrDefault('IDEA_SOURCES', "true"))
8285

8386
plugins = [
@@ -87,8 +90,7 @@ intellij {
8790
}
8891
patchPluginXml {
8992
// see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description
90-
sinceBuild = build_version == EAP_VERSION ? '221' : build_version
91-
untilBuild = build_version == EAP_VERSION ? '*' : build_version + ".*"
93+
sinceBuild = build_version
9294

9395
changeNotes = """<pre style="font-family: sans-serif">
9496
Major update release 3.*!

0 commit comments

Comments
 (0)