Skip to content

Commit b8167e7

Browse files
author
leinlin
committed
2 parents 0ce7e54 + 9361b5c commit b8167e7

File tree

165 files changed

+1466
-2066
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+1466
-2066
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Build Plugin
22

33
on:
44
push:
5-
branches: [ "master" ]
6-
pull_request:
7-
branches: [ "master" ]
5+
branches:
6+
- '*'
7+
# pull_request:
8+
# branches: [ "master" ]
89

910
permissions:
1011
contents: read
@@ -16,20 +17,22 @@ jobs:
1617

1718
env:
1819
CI: true
19-
CI_BUILD_VERSION: 1.3.7.${{ github.run_number }}
20+
CI_BUILD_VERSION: 1.4.0.${{ github.run_number }}
2021

2122
steps:
2223
- name: Checkout
2324
uses: actions/checkout@v3
2425

25-
- name: Set up JDK 11
26+
- name: Set up JDK 17
2627
uses: actions/setup-java@v3
2728
with:
28-
java-version: '11'
29+
java-version: '17'
2930
distribution: 'temurin'
3031

31-
- name: Build 2022.2
32-
run: ./gradlew buildPlugin -DIDEA_VER=222
32+
- name: Build 2023.1
33+
env:
34+
IDEA_VER: 231
35+
run: ./gradlew buildPlugin
3336

3437
- name: Upload artifact
3538
uses: actions/upload-artifact@v3.1.0

.github/workflows/on_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ jobs:
3333
- name: Checkout
3434
uses: actions/checkout@v3
3535

36-
- name: Set up JDK 11
36+
- name: Set up JDK 17
3737
uses: actions/setup-java@v3
3838
with:
39-
java-version: '11'
39+
java-version: '17'
4040
distribution: 'temurin'
4141

42-
- name: Publish 2022.2
42+
- name: Publish 2023.1
4343
env:
44-
IDEA_VER: 222
44+
IDEA_VER: 231
4545
run: ./gradlew publishPlugin
4646

4747
- name: Upload artifact

build.gradle.kts

Lines changed: 30 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import org.apache.tools.ant.taskdefs.condition.Os
1919
import java.io.ByteArrayOutputStream
2020

2121
plugins {
22-
id("org.jetbrains.intellij").version("1.5.3")
23-
id("org.jetbrains.kotlin.jvm").version("1.6.0")
24-
id("de.undercouch.download").version("3.4.3")
22+
id("org.jetbrains.intellij").version("1.13.3")
23+
id("org.jetbrains.kotlin.jvm").version("1.8.21")
24+
id("de.undercouch.download").version("5.3.0")
2525
}
2626

2727
data class BuildData(
@@ -40,6 +40,26 @@ data class BuildData(
4040
)
4141

4242
val buildDataList = listOf(
43+
BuildData(
44+
ideaSDKShortVersion = "231",
45+
// 223.7571.123-EAP-SNAPSHOT
46+
// LATEST-EAP-SNAPSHOT
47+
ideaSDKVersion = "233.11799.6-EAP-SNAPSHOT",
48+
sinceBuild = "232",
49+
untilBuild = "233.*",
50+
bunch = "212",
51+
targetCompatibilityLevel = JavaVersion.VERSION_17,
52+
jvmTarget = "17"
53+
),
54+
BuildData(
55+
ideaSDKShortVersion = "223",
56+
ideaSDKVersion = "2022.3",
57+
sinceBuild = "223",
58+
untilBuild = "223.*",
59+
bunch = "212",
60+
targetCompatibilityLevel = JavaVersion.VERSION_17,
61+
jvmTarget = "17"
62+
),
4363
BuildData(
4464
ideaSDKShortVersion = "222",
4565
ideaSDKVersion = "2022.2",
@@ -53,71 +73,14 @@ val buildDataList = listOf(
5373
sinceBuild = "211",
5474
untilBuild = "211.*",
5575
bunch = "203"
56-
),
57-
BuildData(
58-
ideaSDKShortVersion = "203",
59-
ideaSDKVersion = "IC-203.5981.155",
60-
sinceBuild = "203",
61-
untilBuild = "203.*"
62-
),
63-
BuildData(
64-
ideaSDKShortVersion = "202",
65-
ideaSDKVersion = "IC-202.6397.94",
66-
sinceBuild = "202",
67-
untilBuild = "202.*",
68-
jvmTarget = "1.6",
69-
targetCompatibilityLevel = JavaVersion.VERSION_1_8
70-
),
71-
BuildData(
72-
ideaSDKShortVersion = "201",
73-
ideaSDKVersion = "IC-201.8743.12",
74-
sinceBuild = "201",
75-
untilBuild = "201.*",
76-
jvmTarget = "1.6",
77-
targetCompatibilityLevel = JavaVersion.VERSION_1_8
78-
),
79-
BuildData(
80-
ideaSDKShortVersion = "193",
81-
ideaSDKVersion = "IC-193.5233.102",
82-
sinceBuild = "193",
83-
untilBuild = "194.*",
84-
jvmTarget = "1.6",
85-
targetCompatibilityLevel = JavaVersion.VERSION_1_8
86-
),
87-
BuildData(
88-
ideaSDKShortVersion = "182",
89-
ideaSDKVersion = "IC-182.2371.4",
90-
sinceBuild = "182",
91-
untilBuild = "193.*",
92-
explicitJavaDependency = false,
93-
jvmTarget = "1.6",
94-
targetCompatibilityLevel = JavaVersion.VERSION_1_8
95-
),
96-
BuildData(
97-
ideaSDKShortVersion = "172",
98-
ideaSDKVersion = "IC-172.4574.19",
99-
sinceBuild = "172",
100-
untilBuild = "181.*",
101-
explicitJavaDependency = false,
102-
jvmTarget = "1.6",
103-
targetCompatibilityLevel = JavaVersion.VERSION_1_8
104-
),
105-
BuildData(
106-
ideaSDKShortVersion = "171",
107-
ideaSDKVersion = "IC-171.4694.73",
108-
sinceBuild = "171",
109-
untilBuild = "171.*",
110-
explicitJavaDependency = false,
111-
jvmTarget = "1.6",
112-
targetCompatibilityLevel = JavaVersion.VERSION_1_8
11376
)
11477
)
11578

11679
val buildVersion = System.getProperty("IDEA_VER") ?: buildDataList.first().ideaSDKShortVersion
11780

11881
val buildVersionData = buildDataList.find { it.ideaSDKShortVersion == buildVersion }!!
11982

120-
val emmyDebuggerVersion = "1.2.9"
83+
val emmyDebuggerVersion = "1.3.0"
12184

12285
val resDir = "src/main/resources"
12386

@@ -211,7 +174,6 @@ project(":") {
211174
repositories {
212175
maven(url = "https://www.jetbrains.com/intellij-repository/releases")
213176
mavenCentral()
214-
jcenter()
215177
}
216178

217179
dependencies {
@@ -231,17 +193,17 @@ project(":") {
231193
}
232194
}
233195

234-
configure<JavaPluginConvention> {
196+
/*configure<JavaPluginConvention> {
235197
sourceCompatibility = buildVersionData.targetCompatibilityLevel
236198
targetCompatibility = buildVersionData.targetCompatibilityLevel
237-
}
199+
}*/
238200

239201
intellij {
240-
type.set("IU")
202+
type.set("IC")
241203
updateSinceUntilBuild.set(false)
242-
downloadSources.set(false)
204+
downloadSources.set(!isCI)
243205
version.set(buildVersionData.ideaSDKVersion)
244-
localPath.set(System.getenv("IDEA_HOME_${buildVersionData.ideaSDKShortVersion}"))
206+
//localPath.set(System.getenv("IDEA_HOME_${buildVersionData.ideaSDKShortVersion}"))
245207
sandboxDir.set("${project.buildDir}/${buildVersionData.ideaSDKShortVersion}/idea-sandbox")
246208
}
247209

@@ -312,4 +274,4 @@ project(":") {
312274
}
313275
}
314276
}
315-
}
277+
}

0 commit comments

Comments
 (0)