update intellij platform
This commit is contained in:
parent
4efe615ae8
commit
6d192cd72c
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@ -36,13 +36,13 @@ jobs:
|
|||||||
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
|
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Check out current repository
|
# Check out the current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Validate wrapper
|
# Validate wrapper
|
||||||
- name: Gradle Wrapper Validation
|
- name: Gradle Wrapper Validation
|
||||||
uses: gradle/wrapper-validation-action@v2
|
uses: gradle/actions/wrapper-validation@v3
|
||||||
|
|
||||||
# Set up Java environment for the next steps
|
# Set up Java environment for the next steps
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
@ -53,9 +53,7 @@ jobs:
|
|||||||
|
|
||||||
# Setup Gradle
|
# Setup Gradle
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
- name: Export Properties
|
- name: Export Properties
|
||||||
@ -73,8 +71,6 @@ jobs:
|
|||||||
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
|
|
||||||
|
|
||||||
# Build plugin
|
# Build plugin
|
||||||
- name: Build plugin
|
- name: Build plugin
|
||||||
run: ./gradlew buildPlugin
|
run: ./gradlew buildPlugin
|
||||||
@ -104,7 +100,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Check out current repository
|
# Check out the current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -117,9 +113,7 @@ jobs:
|
|||||||
|
|
||||||
# Setup Gradle
|
# Setup Gradle
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
@ -157,9 +151,12 @@ jobs:
|
|||||||
tool-cache: false
|
tool-cache: false
|
||||||
large-packages: false
|
large-packages: false
|
||||||
|
|
||||||
# Check out current repository
|
# Check out the current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
|
||||||
|
fetch-depth: 0 # a full history is required for pull request analysis
|
||||||
|
|
||||||
# Set up Java environment for the next steps
|
# Set up Java environment for the next steps
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
@ -170,7 +167,7 @@ jobs:
|
|||||||
|
|
||||||
# Run Qodana inspections
|
# Run Qodana inspections
|
||||||
- name: Qodana - Code Inspection
|
- name: Qodana - Code Inspection
|
||||||
uses: JetBrains/qodana-action@v2023.3.1
|
uses: JetBrains/qodana-action@v2024.2
|
||||||
with:
|
with:
|
||||||
cache-default-branch-only: true
|
cache-default-branch-only: true
|
||||||
|
|
||||||
@ -188,7 +185,7 @@ jobs:
|
|||||||
tool-cache: false
|
tool-cache: false
|
||||||
large-packages: false
|
large-packages: false
|
||||||
|
|
||||||
# Check out current repository
|
# Check out the current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -201,9 +198,7 @@ jobs:
|
|||||||
|
|
||||||
# Setup Gradle
|
# Setup Gradle
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
|
||||||
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
|
||||||
@ -214,7 +209,7 @@ jobs:
|
|||||||
|
|
||||||
# Run Verify Plugin task and IntelliJ Plugin Verifier tool
|
# Run Verify Plugin task and IntelliJ Plugin Verifier tool
|
||||||
- name: Run Plugin Verification tasks
|
- name: Run Plugin Verification tasks
|
||||||
run: ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
|
run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
|
||||||
|
|
||||||
# Collect Plugin Verifier Result
|
# Collect Plugin Verifier Result
|
||||||
- name: Collect Plugin Verifier Result
|
- name: Collect Plugin Verifier Result
|
||||||
@ -235,7 +230,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Check out current repository
|
# Check out the current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Check out current repository
|
# Check out the current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -33,9 +33,7 @@ jobs:
|
|||||||
|
|
||||||
# Setup Gradle
|
# Setup Gradle
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
- name: Export Properties
|
- name: Export Properties
|
||||||
@ -51,7 +49,7 @@ jobs:
|
|||||||
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Update Unreleased section with the current release note
|
# Update the Unreleased section with the current release note
|
||||||
- name: Patch Changelog
|
- name: Patch Changelog
|
||||||
if: ${{ steps.properties.outputs.changelog != '' }}
|
if: ${{ steps.properties.outputs.changelog != '' }}
|
||||||
env:
|
env:
|
||||||
|
|||||||
8
.github/workflows/run-ui-tests.yml
vendored
8
.github/workflows/run-ui-tests.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Check out current repository
|
# Check out the current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -44,9 +44,7 @@ jobs:
|
|||||||
|
|
||||||
# Setup Gradle
|
# Setup Gradle
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
|
|
||||||
# Run IDEA prepared for UI testing
|
# Run IDEA prepared for UI testing
|
||||||
- name: Run IDE
|
- name: Run IDE
|
||||||
@ -54,7 +52,7 @@ jobs:
|
|||||||
|
|
||||||
# Wait for IDEA to be started
|
# Wait for IDEA to be started
|
||||||
- name: Health Check
|
- name: Health Check
|
||||||
uses: jtalk/url-health-check-action@v3
|
uses: jtalk/url-health-check-action@v4
|
||||||
with:
|
with:
|
||||||
url: http://127.0.0.1:8082
|
url: http://127.0.0.1:8082
|
||||||
max-attempts: 15
|
max-attempts: 15
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
.gradle
|
.gradle
|
||||||
.idea
|
.idea
|
||||||
|
.intellijPlatform
|
||||||
.qodana
|
.qodana
|
||||||
build
|
build
|
||||||
@ -1,25 +0,0 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
|
||||||
<configuration default="false" name="Run IDE for UI Tests" type="GradleRunConfiguration" factoryName="Gradle">
|
|
||||||
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
|
|
||||||
<ExternalSystemSettings>
|
|
||||||
<option name="executionName" />
|
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
||||||
<option name="externalSystemIdString" value="GRADLE" />
|
|
||||||
<option name="scriptParameters" value="" />
|
|
||||||
<option name="taskDescriptions">
|
|
||||||
<list />
|
|
||||||
</option>
|
|
||||||
<option name="taskNames">
|
|
||||||
<list>
|
|
||||||
<option value="runIdeForUiTests" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
<option name="vmOptions" />
|
|
||||||
</ExternalSystemSettings>
|
|
||||||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
|
||||||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
|
||||||
<DebugAllEnabled>false</DebugAllEnabled>
|
|
||||||
<RunAsTest>false</RunAsTest>
|
|
||||||
<method v="2" />
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="Run Plugin" type="GradleRunConfiguration" factoryName="Gradle">
|
<configuration default="false" name="Run Plugin" type="GradleRunConfiguration" factoryName="Gradle">
|
||||||
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
|
<log_file alias="IDE logs" path="$PROJECT_DIR$/build/idea-sandbox/*/log/idea.log" show_all="true" />
|
||||||
<ExternalSystemSettings>
|
<ExternalSystemSettings>
|
||||||
<option name="executionName" />
|
<option name="executionName" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
@ -19,6 +19,7 @@
|
|||||||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
||||||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
||||||
<DebugAllEnabled>false</DebugAllEnabled>
|
<DebugAllEnabled>false</DebugAllEnabled>
|
||||||
|
<RunAsTest>false</RunAsTest>
|
||||||
<method v="2" />
|
<method v="2" />
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
@ -1,24 +0,0 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
|
||||||
<configuration default="false" name="Run Qodana" type="GradleRunConfiguration" factoryName="Gradle">
|
|
||||||
<ExternalSystemSettings>
|
|
||||||
<option name="executionName" />
|
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
||||||
<option name="externalSystemIdString" value="GRADLE" />
|
|
||||||
<option name="scriptParameters" value="" />
|
|
||||||
<option name="taskDescriptions">
|
|
||||||
<list />
|
|
||||||
</option>
|
|
||||||
<option name="taskNames">
|
|
||||||
<list>
|
|
||||||
<option value="qodanaScan" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
<option name="vmOptions" />
|
|
||||||
</ExternalSystemSettings>
|
|
||||||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
|
||||||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
|
||||||
<DebugAllEnabled>false</DebugAllEnabled>
|
|
||||||
<RunAsTest>false</RunAsTest>
|
|
||||||
<method v="2" />
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="Run Verifications" type="GradleRunConfiguration" factoryName="Gradle">
|
<configuration default="false" name="Run Tests" 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="runPluginVerifier" />
|
<option value="check" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
<option name="vmOptions" value="" />
|
<option name="vmOptions" value="" />
|
||||||
@ -19,8 +19,7 @@
|
|||||||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
||||||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
||||||
<DebugAllEnabled>false</DebugAllEnabled>
|
<DebugAllEnabled>false</DebugAllEnabled>
|
||||||
<method v="2">
|
<RunAsTest>true</RunAsTest>
|
||||||
<option name="Gradle.BeforeRunTask" enabled="true" tasks="clean" externalProjectPath="$PROJECT_DIR$" vmOptions="" scriptParameters="" />
|
<method v="2" />
|
||||||
</method>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
@ -11,7 +11,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option name="taskNames">
|
<option name="taskNames">
|
||||||
<list>
|
<list>
|
||||||
<option value="runPluginVerifier" />
|
<option value="verifyPlugin" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
<option name="vmOptions" value="" />
|
<option name="vmOptions" value="" />
|
||||||
@ -19,8 +19,7 @@
|
|||||||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
||||||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
||||||
<DebugAllEnabled>false</DebugAllEnabled>
|
<DebugAllEnabled>false</DebugAllEnabled>
|
||||||
<method v="2">
|
<RunAsTest>false</RunAsTest>
|
||||||
<option name="Gradle.BeforeRunTask" enabled="true" tasks="clean" externalProjectPath="$PROJECT_DIR$" vmOptions="" scriptParameters="" />
|
<method v="2" />
|
||||||
</method>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
175
build.gradle.kts
175
build.gradle.kts
@ -1,80 +1,70 @@
|
|||||||
import org.jetbrains.changelog.Changelog
|
import org.jetbrains.changelog.Changelog
|
||||||
import org.jetbrains.changelog.markdownToHTML
|
import org.jetbrains.changelog.markdownToHTML
|
||||||
|
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
|
||||||
fun properties(key: String) = providers.gradleProperty(key)
|
|
||||||
fun environment(key: String) = providers.environmentVariable(key)
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java") // Java support
|
id("java") // Java support
|
||||||
alias(libs.plugins.kotlin) // Kotlin support
|
alias(libs.plugins.kotlin) // Kotlin support
|
||||||
alias(libs.plugins.gradleIntelliJPlugin) // Gradle IntelliJ Plugin
|
alias(libs.plugins.intelliJPlatform) // IntelliJ Platform Gradle Plugin
|
||||||
alias(libs.plugins.changelog) // Gradle Changelog Plugin
|
alias(libs.plugins.changelog) // Gradle Changelog Plugin
|
||||||
alias(libs.plugins.qodana) // Gradle Qodana Plugin
|
alias(libs.plugins.qodana) // Gradle Qodana Plugin
|
||||||
alias(libs.plugins.kover) // Gradle Kover Plugin
|
alias(libs.plugins.kover) // Gradle Kover Plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
group = properties("pluginGroup").get()
|
group = providers.gradleProperty("pluginGroup").get()
|
||||||
version = properties("pluginVersion").get()
|
version = providers.gradleProperty("pluginVersion").get()
|
||||||
|
|
||||||
// Configure project's dependencies
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
|
|
||||||
dependencies {
|
|
||||||
// implementation(libs.annotations)
|
|
||||||
implementation(libs.json5.java)
|
|
||||||
implementation(libs.commons.lang3)
|
|
||||||
implementation(libs.commons.text)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the JVM language level used to build the project.
|
// Set the JVM language level used to build the project.
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(17)
|
jvmToolchain(17)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
|
// Configure project's dependencies
|
||||||
intellij {
|
repositories {
|
||||||
pluginName = properties("pluginName")
|
mavenCentral()
|
||||||
version = properties("platformVersion")
|
|
||||||
type = properties("platformType")
|
|
||||||
|
|
||||||
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
|
// IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html
|
||||||
plugins = properties("platformPlugins").map { it.split(',').map(String::trim).filter(String::isNotEmpty) }
|
intellijPlatform {
|
||||||
}
|
defaultRepositories()
|
||||||
|
|
||||||
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
|
|
||||||
changelog {
|
|
||||||
groups.empty()
|
|
||||||
repositoryUrl = properties("pluginRepositoryUrl")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
|
|
||||||
koverReport {
|
|
||||||
defaults {
|
|
||||||
xml {
|
|
||||||
onCheck = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
|
||||||
wrapper {
|
dependencies {
|
||||||
gradleVersion = properties("gradleVersion").get()
|
// implementation(libs.annotations)
|
||||||
}
|
implementation(libs.json5.java)
|
||||||
|
implementation(libs.commons.lang3)
|
||||||
|
implementation(libs.commons.text)
|
||||||
|
testImplementation(libs.junit)
|
||||||
|
|
||||||
patchPluginXml {
|
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
|
||||||
version = properties("pluginVersion")
|
intellijPlatform {
|
||||||
sinceBuild = properties("pluginSinceBuild")
|
create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion"))
|
||||||
untilBuild = properties("pluginUntilBuild")
|
|
||||||
|
// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
|
||||||
|
bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') })
|
||||||
|
|
||||||
|
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace.
|
||||||
|
plugins(providers.gradleProperty("platformPlugins").map { it.split(',') })
|
||||||
|
|
||||||
|
instrumentationTools()
|
||||||
|
pluginVerifier()
|
||||||
|
zipSigner()
|
||||||
|
testFramework(TestFrameworkType.Platform)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
|
||||||
|
intellijPlatform {
|
||||||
|
pluginConfiguration {
|
||||||
|
version = providers.gradleProperty("pluginVersion")
|
||||||
|
|
||||||
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
|
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
|
||||||
pluginDescription = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
|
description = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
|
||||||
val start = "<!-- Plugin description -->"
|
val start = "<!-- Plugin description -->"
|
||||||
val end = "<!-- Plugin description end -->"
|
val end = "<!-- Plugin description end -->"
|
||||||
|
|
||||||
with (it.lines()) {
|
with(it.lines()) {
|
||||||
if (!containsAll(listOf(start, end))) {
|
if (!containsAll(listOf(start, end))) {
|
||||||
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
|
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
|
||||||
}
|
}
|
||||||
@ -84,7 +74,7 @@ tasks {
|
|||||||
|
|
||||||
val changelog = project.changelog // local variable for configuration cache compatibility
|
val changelog = project.changelog // local variable for configuration cache compatibility
|
||||||
// Get the latest available change notes from the changelog file
|
// Get the latest available change notes from the changelog file
|
||||||
changeNotes = properties("pluginVersion").map { pluginVersion ->
|
changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion ->
|
||||||
with(changelog) {
|
with(changelog) {
|
||||||
renderItem(
|
renderItem(
|
||||||
(getOrNull(pluginVersion) ?: getUnreleased())
|
(getOrNull(pluginVersion) ?: getUnreleased())
|
||||||
@ -94,29 +84,78 @@ tasks {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ideaVersion {
|
||||||
|
sinceBuild = providers.gradleProperty("pluginSinceBuild")
|
||||||
|
untilBuild = providers.gradleProperty("pluginUntilBuild")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure UI tests plugin
|
signing {
|
||||||
// Read more: https://github.com/JetBrains/intellij-ui-test-robot
|
certificateChain = providers.environmentVariable("CERTIFICATE_CHAIN")
|
||||||
runIdeForUiTests {
|
privateKey = providers.environmentVariable("PRIVATE_KEY")
|
||||||
systemProperty("robot-server.port", "8082")
|
password = providers.environmentVariable("PRIVATE_KEY_PASSWORD")
|
||||||
systemProperty("ide.mac.message.dialogs.as.sheets", "false")
|
|
||||||
systemProperty("jb.privacy.policy.text", "<!--999.999-->")
|
|
||||||
systemProperty("jb.consents.confirmation.enabled", "false")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
signPlugin {
|
publishing {
|
||||||
certificateChain = environment("CERTIFICATE_CHAIN")
|
token = providers.environmentVariable("PUBLISH_TOKEN")
|
||||||
privateKey = environment("PRIVATE_KEY")
|
|
||||||
password = environment("PRIVATE_KEY_PASSWORD")
|
|
||||||
}
|
|
||||||
|
|
||||||
publishPlugin {
|
|
||||||
dependsOn("patchChangelog")
|
|
||||||
token = environment("PUBLISH_TOKEN")
|
|
||||||
// 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.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
|
channels = providers.gradleProperty("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
|
||||||
|
}
|
||||||
|
|
||||||
|
pluginVerification {
|
||||||
|
ides {
|
||||||
|
recommended()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
|
||||||
|
changelog {
|
||||||
|
groups.empty()
|
||||||
|
repositoryUrl = providers.gradleProperty("pluginRepositoryUrl")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
|
||||||
|
kover {
|
||||||
|
reports {
|
||||||
|
total {
|
||||||
|
xml {
|
||||||
|
onCheck = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
wrapper {
|
||||||
|
gradleVersion = providers.gradleProperty("gradleVersion").get()
|
||||||
|
}
|
||||||
|
|
||||||
|
publishPlugin {
|
||||||
|
dependsOn(patchChangelog)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
intellijPlatformTesting {
|
||||||
|
runIde {
|
||||||
|
register("runIdeForUiTests") {
|
||||||
|
task {
|
||||||
|
jvmArgumentProviders += CommandLineArgumentProvider {
|
||||||
|
listOf(
|
||||||
|
"-Drobot-server.port=8082",
|
||||||
|
"-Dide.mac.message.dialogs.as.sheets=false",
|
||||||
|
"-Djb.privacy.policy.text=<!--999.999-->",
|
||||||
|
"-Djb.consents.confirmation.enabled=false",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
robotServerPlugin()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -15,11 +15,13 @@ platformType = IU
|
|||||||
platformVersion = 2022.3.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.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
|
||||||
platformPlugins = org.jetbrains.kotlin, JavaScript, com.jetbrains.php:223.8836.42
|
platformPlugins = com.jetbrains.php:223.8836.42
|
||||||
|
# Example: platformBundledPlugins = com.intellij.java
|
||||||
|
platformBundledPlugins = org.jetbrains.kotlin, JavaScript
|
||||||
|
|
||||||
# Gradle Releases -> https://github.com/gradle/gradle/releases
|
# Gradle Releases -> https://github.com/gradle/gradle/releases
|
||||||
gradleVersion = 8.7
|
gradleVersion = 8.10.2
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
@ -4,23 +4,25 @@ annotations = "24.1.0"
|
|||||||
json5-java = "2.0.0"
|
json5-java = "2.0.0"
|
||||||
commons-lang3 = "3.14.0"
|
commons-lang3 = "3.14.0"
|
||||||
commons-text = "1.11.0"
|
commons-text = "1.11.0"
|
||||||
|
junit = "4.13.2"
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
kotlin = "1.9.23"
|
changelog = "2.2.1"
|
||||||
changelog = "2.2.0"
|
intelliJPlatform = "2.1.0"
|
||||||
gradleIntelliJPlugin = "1.17.2"
|
kotlin = "1.9.25"
|
||||||
qodana = "2023.3.1"
|
kover = "0.8.3"
|
||||||
kover = "0.7.6"
|
qodana = "2024.2.3"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" }
|
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" }
|
||||||
json5-java = { group = "de.marhali", name = "json5-java", version.ref = "json5-java" }
|
json5-java = { group = "de.marhali", name = "json5-java", version.ref = "json5-java" }
|
||||||
commons-lang3 = { group = "org.apache.commons", name = "commons-lang3", version.ref = "commons-lang3" }
|
commons-lang3 = { group = "org.apache.commons", name = "commons-lang3", version.ref = "commons-lang3" }
|
||||||
commons-text = { group = "org.apache.commons", name = "commons-text", version.ref = "commons-text" }
|
commons-text = { group = "org.apache.commons", name = "commons-text", version.ref = "commons-text" }
|
||||||
|
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
|
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
|
||||||
gradleIntelliJPlugin = { id = "org.jetbrains.intellij", version.ref = "gradleIntelliJPlugin" }
|
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" }
|
||||||
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
||||||
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
|
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
|
||||||
qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" }
|
qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" }
|
||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -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.7-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
7
gradlew
vendored
7
gradlew
vendored
@ -15,6 +15,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
@ -55,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
@ -84,7 +86,8 @@ done
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||||
|
' "$PWD" ) || exit
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
|
|||||||
2
gradlew.bat
vendored
2
gradlew.bat
vendored
@ -13,6 +13,8 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# https://www.jetbrains.com/help/qodana/qodana-yaml.html
|
# https://www.jetbrains.com/help/qodana/qodana-yaml.html
|
||||||
|
|
||||||
version: 1.0
|
version: 1.0
|
||||||
linter: jetbrains/qodana-jvm-community:latest
|
linter: jetbrains/qodana-jvm-community:2024.2
|
||||||
projectJDK: "17"
|
projectJDK: "17"
|
||||||
profile:
|
profile:
|
||||||
name: qodana.recommended
|
name: qodana.recommended
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
|
rootProject.name = "easy-i18n"
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = "easy-i18n"
|
|
||||||
Loading…
x
Reference in New Issue
Block a user