mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
Introduced platformPlugins
property in gradle.properties
for configuring dependencies to bundled/external plugins
This commit is contained in:
parent
d5e288773e
commit
7aa1a48766
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -53,7 +53,7 @@ jobs:
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
|
||||
|
||||
# Cache Gradle Wrapper
|
||||
- name: Setup Gradle Wrapper Cache
|
||||
@ -98,7 +98,7 @@ jobs:
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
|
||||
|
||||
# Cache Gradle Wrapper
|
||||
- name: Setup Gradle Wrapper Cache
|
||||
|
@ -3,6 +3,9 @@
|
||||
# IntelliJ Platform Plugin Template Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- Introduced `platformPlugins` property in `gradle.properties` for configuring dependencies to bundled/external plugins
|
||||
|
||||
### Changed
|
||||
- Disable "Release Draft" job for pull requests in the "Build" GitHub Actions Workflow
|
||||
- Dependencies - upgrade `org.jetbrains.intellij` to 0.5.0
|
||||
|
@ -72,7 +72,7 @@ The most significant parts of the current configuration are:
|
||||
The project-specific configuration file [gradle.properties][file:gradle.properties] contains:
|
||||
|
||||
| Property name | Description |
|
||||
| ------------------------- | ------------------------------------------------------------------------------------------ |
|
||||
| ------------------------- | --------------------------------------------------------------------------------------------------------- |
|
||||
| `pluginGroup` | Package name - after *using* the template, this will be set to `com.github.username.repo`. |
|
||||
| `pluginName` | Plugin name displayed in the Marketplace and the Plugins Repository. |
|
||||
| `pluginVersion` | The current version of the plugin. |
|
||||
@ -81,6 +81,7 @@ The project-specific configuration file [gradle.properties][file:gradle.properti
|
||||
| `platformType` | The type of IDE distribution. |
|
||||
| `platformVersion` | The version of the IntelliJ Platform IDE that will be used to build the plugin. |
|
||||
| `platformDownloadSources` | IDE sources downloaded while initializing the Gradle build. |
|
||||
| `platformPlugins` | Comma-separated list of dependencies to the bundled IDE plugins and plugins from the Plugin Repositories. |
|
||||
|
||||
The properties listed define the plugin itself or configure the [gradle-intellij-plugin][gh:gradle-intellij-plugin] – check its documentation for more details.
|
||||
|
||||
|
@ -29,6 +29,7 @@ val pluginUntilBuild: String by project
|
||||
|
||||
val platformType: String by project
|
||||
val platformVersion: String by project
|
||||
val platformPlugins: String by project
|
||||
val platformDownloadSources: String by project
|
||||
|
||||
group = pluginGroup
|
||||
@ -52,10 +53,8 @@ intellij {
|
||||
downloadSources = platformDownloadSources.toBoolean()
|
||||
updateSinceUntilBuild = true
|
||||
|
||||
// Plugin Dependencies:
|
||||
// https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html
|
||||
//
|
||||
// setPlugins("java")
|
||||
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
|
||||
setPlugins(*platformPlugins.split(',').map(String::trim).filter(String::isNotEmpty).toTypedArray())
|
||||
}
|
||||
|
||||
// Configure detekt plugin.
|
||||
|
@ -10,6 +10,9 @@ pluginUntilBuild = 202.*
|
||||
platformType = IC
|
||||
platformVersion = 2019.3
|
||||
platformDownloadSources = true
|
||||
# Plugin Dependencies -> https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html
|
||||
# Example: platformPlugins = com.intellij.java,com.jetbrains.php:203.4449.22
|
||||
platformPlugins =
|
||||
|
||||
# Opt-out flag for bundling Kotlin standard library.
|
||||
# See https://kotlinlang.org/docs/reference/using-gradle.html#dependency-on-the-standard-library for details.
|
||||
|
Loading…
Reference in New Issue
Block a user