add support for intellij platform version 2024.1

This commit is contained in:
marhali 2024-04-09 23:30:44 +02:00
parent 5f51ddcd50
commit 9b468a2101
13 changed files with 56 additions and 70 deletions

View File

@ -20,6 +20,10 @@ on:
# Trigger the workflow on any pull request # Trigger the workflow on any pull request
pull_request: pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
# Prepare environment and build the plugin # Prepare environment and build the plugin
@ -38,7 +42,7 @@ jobs:
# Validate wrapper # Validate wrapper
- name: Gradle Wrapper Validation - name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1.1.0 uses: gradle/wrapper-validation-action@v2
# Set up Java environment for the next steps # Set up Java environment for the next steps
- name: Setup Java - name: Setup Java
@ -49,7 +53,7 @@ jobs:
# Setup Gradle # Setup Gradle
- name: Setup Gradle - name: Setup Gradle
uses: gradle/gradle-build-action@v2 uses: gradle/actions/setup-gradle@v3
with: with:
gradle-home-cache-cleanup: true gradle-home-cache-cleanup: true
@ -88,7 +92,7 @@ jobs:
# Store already-built plugin as an artifact for downloading # Store already-built plugin as an artifact for downloading
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ steps.artifact.outputs.filename }} name: ${{ steps.artifact.outputs.filename }}
path: ./build/distributions/content/*/* path: ./build/distributions/content/*/*
@ -113,7 +117,7 @@ jobs:
# Setup Gradle # Setup Gradle
- name: Setup Gradle - name: Setup Gradle
uses: gradle/gradle-build-action@v2 uses: gradle/actions/setup-gradle@v3
with: with:
gradle-home-cache-cleanup: true gradle-home-cache-cleanup: true
@ -124,14 +128,14 @@ jobs:
# Collect Tests Result of failed tests # Collect Tests Result of failed tests
- name: Collect Tests Result - name: Collect Tests Result
if: ${{ failure() }} if: ${{ failure() }}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: tests-result name: tests-result
path: ${{ github.workspace }}/build/reports/tests path: ${{ github.workspace }}/build/reports/tests
# Upload the Kover report to CodeCov # Upload the Kover report to CodeCov
- name: Upload Code Coverage Report - name: Upload Code Coverage Report
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v4
with: with:
files: ${{ github.workspace }}/build/reports/kover/report.xml files: ${{ github.workspace }}/build/reports/kover/report.xml
@ -166,7 +170,7 @@ jobs:
# Run Qodana inspections # Run Qodana inspections
- name: Qodana - Code Inspection - name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v2023.2.8 uses: JetBrains/qodana-action@v2023.3.1
with: with:
cache-default-branch-only: true cache-default-branch-only: true
@ -197,13 +201,13 @@ jobs:
# Setup Gradle # Setup Gradle
- name: Setup Gradle - name: Setup Gradle
uses: gradle/gradle-build-action@v2 uses: gradle/actions/setup-gradle@v3
with: with:
gradle-home-cache-cleanup: true gradle-home-cache-cleanup: true
# Cache Plugin Verifier IDEs # Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache - name: Setup Plugin Verifier IDEs Cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
@ -215,7 +219,7 @@ jobs:
# Collect Plugin Verifier Result # Collect Plugin Verifier Result
- name: Collect Plugin Verifier Result - name: Collect Plugin Verifier Result
if: ${{ always() }} if: ${{ always() }}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: pluginVerifier-result name: pluginVerifier-result
path: ${{ github.workspace }}/build/reports/pluginVerifier path: ${{ github.workspace }}/build/reports/pluginVerifier
@ -235,13 +239,6 @@ jobs:
- name: Fetch Sources - name: Fetch Sources
uses: actions/checkout@v4 uses: actions/checkout@v4
# Set up Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
# Remove old release drafts by using the curl request for the available releases with a draft flag # Remove old release drafts by using the curl request for the available releases with a draft flag
- name: Remove Old Release Drafts - name: Remove Old Release Drafts
env: env:
@ -256,7 +253,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
gh release create v${{ needs.build.outputs.version }} \ gh release create "v${{ needs.build.outputs.version }}" \
--draft \ --draft \
--title "v${{ needs.build.outputs.version }}" \ --title "v${{ needs.build.outputs.version }}" \
--notes "$(cat << 'EOM' --notes "$(cat << 'EOM'

View File

@ -33,7 +33,7 @@ jobs:
# Setup Gradle # Setup Gradle
- name: Setup Gradle - name: Setup Gradle
uses: gradle/gradle-build-action@v2 uses: gradle/actions/setup-gradle@v3
with: with:
gradle-home-cache-cleanup: true gradle-home-cache-cleanup: true

View File

@ -44,7 +44,7 @@ jobs:
# Setup Gradle # Setup Gradle
- name: Setup Gradle - name: Setup Gradle
uses: gradle/gradle-build-action@v2 uses: gradle/actions/setup-gradle@v3
with: with:
gradle-home-cache-cleanup: true gradle-home-cache-cleanup: true

View File

@ -1,11 +1,6 @@
<component name="ProjectRunConfigurationManager"> <component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Qodana" type="GradleRunConfiguration" factoryName="Gradle"> <configuration default="false" name="Run Qodana" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings> <ExternalSystemSettings>
<option name="env">
<map>
<entry key="QODANA_SHOW_REPORT" value="true" />
</map>
</option>
<option name="executionName" /> <option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" /> <option name="externalSystemIdString" value="GRADLE" />
@ -15,8 +10,7 @@
</option> </option>
<option name="taskNames"> <option name="taskNames">
<list> <list>
<option value="cleanInspections" /> <option value="qodanaScan" />
<option value="runInspections" />
</list> </list>
</option> </option>
<option name="vmOptions" /> <option name="vmOptions" />

View File

@ -1,5 +1,5 @@
<component name="ProjectRunConfigurationManager"> <component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Tests" type="GradleRunConfiguration" factoryName="Gradle"> <configuration default="false" name="Run Verifications" type="GradleRunConfiguration" factoryName="Gradle">
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" /> <log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
<ExternalSystemSettings> <ExternalSystemSettings>
<option name="executionName" /> <option name="executionName" />
@ -11,7 +11,7 @@
</option> </option>
<option name="taskNames"> <option name="taskNames">
<list> <list>
<option value="check" /> <option value="runPluginVerifier" />
</list> </list>
</option> </option>
<option name="vmOptions" value="" /> <option name="vmOptions" value="" />
@ -19,6 +19,8 @@
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess> <ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess> <ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled> <DebugAllEnabled>false</DebugAllEnabled>
<method v="2" /> <method v="2">
<option name="Gradle.BeforeRunTask" enabled="true" tasks="clean" externalProjectPath="$PROJECT_DIR$" vmOptions="" scriptParameters="" />
</method>
</configuration> </configuration>
</component> </component>

View File

@ -4,6 +4,14 @@
## [Unreleased] ## [Unreleased]
### Added
- Support for IntelliJ Platform version 2024.1
### Changed
- Update dependencies
## [4.4.4] - 2023-12-11 ## [4.4.4] - 2023-12-11
### Fixed ### Fixed

View File

@ -27,13 +27,9 @@ dependencies {
implementation(libs.json5.java) implementation(libs.json5.java)
} }
// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+. // Set the JVM language level used to build the project.
kotlin { kotlin {
@Suppress("UnstableApiUsage") jvmToolchain(17)
jvmToolchain {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.JETBRAINS
}
} }
// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html // Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
@ -52,14 +48,6 @@ changelog {
repositoryUrl = properties("pluginRepositoryUrl") repositoryUrl = properties("pluginRepositoryUrl")
} }
// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin
qodana {
cachePath = provider { file(".qodana").canonicalPath }
reportPath = provider { file("build/reports/inspections").canonicalPath }
saveReport = true
showReport = environment("QODANA_SHOW_REPORT").map { it.toBoolean() }.getOrElse(false)
}
// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration // Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
koverReport { koverReport {
defaults { defaults {
@ -127,6 +115,6 @@ tasks {
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3 // The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more: // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel // https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels = properties("pluginVersion").map { listOf(it.split('-').getOrElse(1) { "default" }.split('.').first()) } channels = properties("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
} }
} }

View File

@ -8,18 +8,18 @@ pluginVersion = 4.4.4
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 223 pluginSinceBuild = 223
pluginUntilBuild = 233.* pluginUntilBuild = 241.*
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
platformType = IU platformType = IU
platformVersion = 2023.3 platformVersion = 2022.3.3
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins = org.jetbrains.kotlin, JavaScript, com.jetbrains.php:233.11799.241 platformPlugins = org.jetbrains.kotlin, JavaScript, com.jetbrains.php:223.8836.42
# Gradle Releases -> https://github.com/gradle/gradle/releases # Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 8.5 gradleVersion = 8.7
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib # Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
kotlin.stdlib.default.dependency = false kotlin.stdlib.default.dependency = false
@ -28,7 +28,4 @@ kotlin.stdlib.default.dependency = false
org.gradle.configuration-cache = true org.gradle.configuration-cache = true
# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html # Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html
org.gradle.caching = true org.gradle.caching = true
# Enable Gradle Kotlin DSL Lazy Property Assignment -> https://docs.gradle.org/current/userguide/kotlin_dsl.html#kotdsl:assignment
systemProp.org.gradle.unsafe.kotlin.assignment = true

View File

@ -4,11 +4,11 @@ annotations = "24.1.0"
json5-java = "2.0.0" json5-java = "2.0.0"
# plugins # plugins
kotlin = "1.9.21" kotlin = "1.9.23"
changelog = "2.2.0" changelog = "2.2.0"
gradleIntelliJPlugin = "1.16.1" gradleIntelliJPlugin = "1.17.2"
qodana = "0.1.13" qodana = "2023.3.1"
kover = "0.7.5" kover = "0.7.6"
[libraries] [libraries]
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" } annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" }

Binary file not shown.

View File

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

20
gradlew.bat vendored
View File

@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute if %ERRORLEVEL% equ 0 goto execute
echo. echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. echo location of your Java installation. 1>&2
goto fail goto fail
@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute if exist "%JAVA_EXE%" goto execute
echo. echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. echo location of your Java installation. 1>&2
goto fail goto fail

View File

@ -1,5 +1,5 @@
plugins { plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
} }
rootProject.name = "easy-i18n" rootProject.name = "easy-i18n"