Skip to content

Commit 0bbc844

Browse files
committed
chore: updated with IntelliJ Platform Plugin Template v1.2.0
1 parent aaa3aa2 commit 0bbc844

File tree

11 files changed

+72
-51
lines changed

11 files changed

+72
-51
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,27 @@ jobs:
3333
changelog: ${{ steps.properties.outputs.changelog }}
3434
steps:
3535

36+
# Free GitHub Actions Environment Disk Space
37+
- name: Maximize Build Space
38+
run: |
39+
sudo rm -rf /usr/share/dotnet
40+
sudo rm -rf /usr/local/lib/android
41+
sudo rm -rf /opt/ghc
42+
3643
# Check out current repository
3744
- name: Fetch Sources
38-
uses: actions/checkout@v2.4.0
45+
uses: actions/checkout@v3
3946

4047
# Validate wrapper
4148
- name: Gradle Wrapper Validation
4249
uses: gradle/[email protected]
4350

4451
# Setup Java 11 environment for the next steps
4552
- name: Setup Java
46-
uses: actions/setup-java@v2
53+
uses: actions/setup-java@v3
4754
with:
4855
distribution: zulu
4956
java-version: 11
50-
cache: gradle
5157

5258
# Set environment variables
5359
- name: Export Properties
@@ -76,14 +82,14 @@ jobs:
7682
# Collect Tests Result of failed tests
7783
- name: Collect Tests Result
7884
if: ${{ failure() }}
79-
uses: actions/upload-artifact@v2
85+
uses: actions/upload-artifact@v3
8086
with:
8187
name: tests-result
8288
path: ${{ github.workspace }}/build/reports/tests
8389

8490
# Cache Plugin Verifier IDEs
8591
- name: Setup Plugin Verifier IDEs Cache
86-
uses: actions/cache@v2.1.7
92+
uses: actions/cache@v3
8793
with:
8894
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
8995
key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
@@ -95,14 +101,14 @@ jobs:
95101
# Collect Plugin Verifier Result
96102
- name: Collect Plugin Verifier Result
97103
if: ${{ always() }}
98-
uses: actions/upload-artifact@v2
104+
uses: actions/upload-artifact@v3
99105
with:
100106
name: pluginVerifier-result
101107
path: ${{ github.workspace }}/build/reports/pluginVerifier
102108

103109
# Run Qodana inspections
104110
- name: Qodana - Code Inspection
105-
uses: JetBrains/qodana-action@v4.2.5
111+
uses: JetBrains/qodana-action@v2022.2.1
106112

107113
# Prepare plugin archive content for creating artifact
108114
- name: Prepare Plugin Artifact
@@ -117,7 +123,7 @@ jobs:
117123
118124
# Store already-built plugin as an artifact for downloading
119125
- name: Upload artifact
120-
uses: actions/upload-artifact@v2.2.4
126+
uses: actions/upload-artifact@v3
121127
with:
122128
name: ${{ steps.artifact.outputs.filename }}
123129
path: ./build/distributions/content/*/*
@@ -129,11 +135,13 @@ jobs:
129135
if: github.event_name != 'pull_request'
130136
needs: build
131137
runs-on: ubuntu-latest
138+
permissions:
139+
contents: write
132140
steps:
133141

134142
# Check out current repository
135143
- name: Fetch Sources
136-
uses: actions/checkout@v2.4.0
144+
uses: actions/checkout@v3
137145

138146
# Remove old release drafts by using the curl request for the available releases with draft flag
139147
- name: Remove Old Release Drafts

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,23 @@ jobs:
1212
release:
1313
name: Publish Plugin
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
1518
steps:
1619

1720
# Check out current repository
1821
- name: Fetch Sources
19-
uses: actions/checkout@v2.4.0
22+
uses: actions/checkout@v3
2023
with:
2124
ref: ${{ github.event.release.tag_name }}
2225

2326
# Setup Java 11 environment for the next steps
2427
- name: Setup Java
25-
uses: actions/setup-java@v2
28+
uses: actions/setup-java@v3
2629
with:
2730
distribution: zulu
2831
java-version: 11
29-
cache: gradle
3032

3133
# Set environment variables
3234
- name: Export Properties
@@ -56,6 +58,9 @@ jobs:
5658
- name: Publish Plugin
5759
env:
5860
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
61+
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
62+
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
63+
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
5964
run: ./gradlew publishPlugin
6065

6166
# Upload artifact as a release asset

.github/workflows/run-ui-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ jobs:
3333

3434
# Check out current repository
3535
- name: Fetch Sources
36-
uses: actions/checkout@v2.4.0
36+
uses: actions/checkout@v3
3737

3838
# Setup Java 11 environment for the next steps
3939
- name: Setup Java
40-
uses: actions/setup-java@v2
40+
uses: actions/setup-java@v3
4141
with:
4242
distribution: zulu
4343
java-version: 11
44-
cache: gradle
4544

4645
# Run IDEA prepared for UI testing
4746
- name: Run IDE

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
# BDLH Changelog
44

55
## [Unreleased]
6+
### Changed
7+
- Stay updated with IntelliJ Platform Plugin Template v1.2.0
68

79
## [0.3.1]
8-
### Fixed
10+
### Fixed
911
- Signature generation of constructor methods
1012

1113
## [0.3.0]

build.gradle.kts

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import org.jetbrains.changelog.markdownToHTML
2-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
32

43
fun properties(key: String) = project.findProperty(key).toString()
54

65
plugins {
76
// Java support
87
id("java")
98
// Kotlin support
10-
id("org.jetbrains.kotlin.jvm") version "1.6.10"
9+
id("org.jetbrains.kotlin.jvm") version "1.7.10"
1110
// Gradle IntelliJ Plugin
12-
id("org.jetbrains.intellij") version "1.4.0"
11+
id("org.jetbrains.intellij") version "1.8.0"
1312
// Gradle Changelog Plugin
1413
id("org.jetbrains.changelog") version "1.3.1"
1514
// Gradle Qodana Plugin
@@ -24,7 +23,20 @@ repositories {
2423
mavenCentral()
2524
}
2625

27-
// Configure Gradle IntelliJ Plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
26+
// Set the JVM language level used to compile sources and generate files - Java 11 is required since 2020.3
27+
java {
28+
toolchain {
29+
languageVersion.set(JavaLanguageVersion.of(17))
30+
}
31+
}
32+
33+
kotlin {
34+
jvmToolchain {
35+
languageVersion.set(JavaLanguageVersion.of(11))
36+
}
37+
}
38+
39+
// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
2840
intellij {
2941
pluginName.set(properties("pluginName"))
3042
version.set(properties("platformVersion"))
@@ -49,17 +61,6 @@ qodana {
4961
}
5062

5163
tasks {
52-
// Set the JVM compatibility versions
53-
properties("javaVersion").let {
54-
withType<JavaCompile> {
55-
sourceCompatibility = it
56-
targetCompatibility = it
57-
}
58-
withType<KotlinCompile> {
59-
kotlinOptions.jvmTarget = it
60-
}
61-
}
62-
6364
wrapper {
6465
gradleVersion = properties("gradleVersion")
6566
}

gradle.properties

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
1-
# IntelliJ Platform Artifacts Repositories
2-
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
1+
# IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
32

43
pluginGroup = com.github.ceclin.bdlh
54
pluginName = BDLH
65
# SemVer format -> https://semver.org
7-
pluginVersion = 0.3.1
6+
pluginVersion = 0.3.2
87

9-
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
10-
# for insight into build numbers and IntelliJ Platform versions.
8+
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
119
pluginSinceBuild = 211
12-
pluginUntilBuild = 221.*
10+
pluginUntilBuild = 222.*
1311

14-
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
12+
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension
1513
platformType = IC
1614
platformVersion = 2021.1.3
1715

1816
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1917
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
2018
platformPlugins = com.intellij.java
2119

22-
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
23-
javaVersion = 11
24-
2520
# Gradle Releases -> https://github.com/gradle/gradle/releases
26-
gradleVersion = 7.4
21+
gradleVersion = 7.5.1
2722

28-
# Opt-out flag for bundling Kotlin standard library.
29-
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
23+
# Opt-out flag for bundling Kotlin standard library -> https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library
3024
# suppress inspection "UnusedProperty"
3125
kotlin.stdlib.default.dependency = false

gradle/wrapper/gradle-wrapper.jar

935 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)